by TAROSKY INC. on WordPress.org
This plugin supports 3 term blocks.
All blocks are customizable on the PHP layer.
Template Structure
To override look and feel, put template files in your theme’s directory.
your-theme-dir
- template-parts
- taxonomy-blocks
- posts-list.php // List of post in post's terms query blocks.
- post-loop.php // Post link in post's terms query blocks.
- term-item.php // Term link.
- term-list.php // Flat term list.
- term-list-hierarchical.php // Hierarchical terms list.
taro_taxonomy_blocks_template filter hook is also available.
This will override the template file path.
Styles
To override styles, regsiter styels named taro-terms-block.
The plugin registers style at priority 20 of init hook, so registering style at priority 10 or earlier.
add_action( 'init', function() {
// Your own CSS.
wp_register_style( 'taro-terms-block', $your_block_css_url, $deps, $version );
} );
Now your blocks will be styled by your CSS.