Home › Forums › Themes Support › Claue › Taxonomy template doesn’t work in child theme
- This topic has 5 replies, 2 voices, and was last updated 2 weeks, 1 day ago by
Harry.
-
AuthorPosts
-
-
November 10, 2023 at 8:34 pm #44139
Hello,
I want to create custom template for brand’s page. I’m using YITH WooCommerce Brands Add-On plugin.
Considering this article https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/ I copied archive-product.php from the claue main theme into /claue-child/woocommerce. Renamed it to taxonomy-yith_product_brand.php, made some changes. And it didin’t work. Brand pages looks the same as others.
I think it’s because of woocommerce.php in main theme. There are lines:
if ( is_singular( ‘product’ ) ) {
echo ‘‘;
woocommerce_content();
echo ‘‘;
} else {
wc_get_template( ‘archive-product.php’ );
}But I don’t how to change it to make my custom template work. Help me please
-
November 11, 2023 at 10:57 am #44140
Hi,
Thank you for choose our theme.
Sorry because inconvenience.
Can you upload the file taxonomy-yith_product_brand.php and copy version of plugin. I will check and help you solve problem.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 11, 2023 at 4:06 pm #44141
Version of YITH WooCommerce Brands Add-On – 2.17.0
taxonomy-yith_product_brand.php in attachment
-
This reply was modified 2 weeks, 5 days ago by
vkuznetsova.
Attachments:
You must be logged in to view attached files. -
This reply was modified 2 weeks, 5 days ago by
-
November 12, 2023 at 10:23 pm #44144
Hi,
You should keep the file name is “archive-product.php” and override code.
You also have another way to create new folder “yith-woocommerce-brands-add-on” and add file to this folder to override function.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 13, 2023 at 6:52 pm #44145
You mean to create a new folder “yith-woocommerce-brands-add-on” inside child-theme? And what function I can override?
I’m sorry, I didn’t understand the second option. Could you give an example?
-
November 15, 2023 at 8:56 am #44146
Hi,
Please check the file in plugins > yith-woocommerce-brands-add-on > templates.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.