Your account expired support, please renew to get your support.

Home Forums Themes Support Claue Taxonomy template doesn’t work in child theme

Viewing 5 reply threads
  • Author
    Posts
    • #44139
      vkuznetsova
      Support Expired

      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

    • #44140
      Harry
      Support Expired

      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

    • #44141
      vkuznetsova
      Support Expired

      Version of YITH WooCommerce Brands Add-On  – 2.17.0

      taxonomy-yith_product_brand.php in attachment

      • This reply was modified 5 months, 3 weeks ago by vkuznetsova.
      Attachments:
      You must be logged in to view attached files.
    • #44144
      Harry
      Support Expired

      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

    • #44145
      vkuznetsova
      Support Expired

      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?

    • #44146
      Harry
      Support Expired

      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

Viewing 5 reply threads

You must be logged in to reply to this topic.