admin管理员组文章数量:1122832
I am trying to make a product listing site using WooCommerce.
Now the system is when someone clicks on any category, they go to the subcategory page.
I want to add a sidebar with all product categories on the subcategory page. How can I do that?
Here is the link : /
I am trying to make a product listing site using WooCommerce.
Now the system is when someone clicks on any category, they go to the subcategory page.
I want to add a sidebar with all product categories on the subcategory page. How can I do that?
Here is the link : https://cctv.abmsrilanka.com/products/
Share Improve this question edited Mar 6, 2020 at 6:31 sleepingpanda 566 bronze badges asked Mar 6, 2020 at 6:02 RazuRazu 35 bronze badges1 Answer
Reset to default 0You would need to override the template in WooCommerce which displays the category page and add in your own sidebar / html.
woocommerce/templates/archive-product.php
You can read up on how to do this here: https://docs.woocommerce.com/document/template-structure/
Don't forget to add theme support in your functions.php file too.
function mytheme_add_woocommerce_support() {
add_theme_support( 'woocommerce' );
}
add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );
本文标签: categoriesHow to edit woocommerce subcategory page
版权声明:本文标题:categories - How to edit woocommerce sub-category page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736290742a1928577.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论