imagewize/thaconomics
最新稳定版本:v1.3.0
Composer 安装命令:
composer require imagewize/thaconomics
包简介
A WordPress spa & retreat child theme based on Moiraine
README 文档
README
A custom WordPress child theme built on the Moiraine block theme for Thaiconomics.com. This theme provides specialized features for economic content about Thailand, with custom styles and functionality.
Features
Custom Header with Hamburger Menu
The theme implements a specialized header with a hamburger menu for improved mobile navigation and a cleaner interface.
Custom Typography
- Bodoni - Used for post titles and dates for an elegant, classic serif appearance
- Open Sans - Used for body text and excerpts for improved readability
Enhanced Block Features
- Custom Post Excerpt Block - Adds a "Link to Post" option to the standard excerpt block, allowing excerpts to link to their parent posts
- Custom Post Templates - Specialized templates for featured posts and grid layouts
File Structure
/assets/- Theme assets/js/- JavaScript files including custom block enhancements
/parts/- Template parts that override the parent themeheader.html- Custom header with hamburger menu
/patterns/- Block patternspost-loop-grid-tc.php- Grid layout for post loopspost-single-featured.php- Enhanced featured post display
/styles/- Custom CSS styles/templates/- Block templates for various page types
Custom Block Functionality
Post Excerpt with Link Option
The theme includes JavaScript that extends WordPress's core post excerpt block with a "Link to Post" toggle in the block editor. When enabled, the entire excerpt becomes a link to the full post.
Installation
- Make sure the parent Moiraine theme is installed
- Upload the Thaiconomics theme folder to
/wp-content/themes/or/app/themes/in a Bedrock installation - Activate the theme through the WordPress admin panel
Development
This theme is built as a child theme of Moiraine. When making changes:
- Custom patterns should be added to the
/patterns/directory - JavaScript files should be placed in
/assets/js/ - Custom template parts should go in
/parts/
Requirements
- WordPress 6.0 or higher
- Moiraine parent theme
- PHP 7.4 or higher
Credits
- Developed by Imagewize
- Built on the Moiraine block theme
- Uses Google Fonts: Bodoni and Open Sans
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-04-23