-
Author
-
January 14, 2017 at 09:35 #149783commonplacesParticipant
Hello,
I build my webstite with your theme Kleo, adn with another plugin called toolest I added 2 new custom categories for my woocommerce product called “series” & “subejct”
Could you tell me where i can find the template that manage the taxonomie-product_cat?
i would like that the products, once they are called by one of the tems of these new categories could be display the same way as the native categories of the theme (like product_cat)
so here native display of product :
https://commonplaces-dev-commonplace_wpserver.pf3.wpserveur.net/shop
and here the diplay for these new categories
https://commonplaces-dev-commonplace_wpserver.pf3.wpserveur.net/subject/abstract
I would like these in 3 colums like the shop.
I asked toolset to do that, but they ask me to contact you because you know better than them how your theme is build.
Thanks for your help in advance.
January 16, 2017 at 04:21 #149861LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 17, 2017 at 17:55 #150000RaduModeratorHi,
product_cat comes from Woocommerce plugin : /wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-product-categories.php line 138
How did you have created shop categories? cuz creating categories from wp-admin -> Products -> Categories -> and those by default will look on three columns : https://seventhqueen.com/themes/kleo/product-category/clothing/hoodies/
The woocommerce layout can be changed from wp-admin -> theme options -> woocommerce
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 17, 2017 at 22:15 #150041commonplacesParticipantHi, it a bit more complicated than what you are explaining.
I created with another plugin, customs product categories, and i would like them displaying like the native product catégories of the theme.
Could you check the difference between these two pages
NATIVE product cat : https://commonplaces-dev-commonplace_wpserver.pf3.wpserveur.net/product-category/ania-lemin/
CUSTOMS product cat : https://commonplaces-dev-commonplace_wpserver.pf3.wpserveur.net/subject/abstract/
So
What is the name of the template that displays the shop page. how can I adopt that template to a custom taxonomy. So i want the cutoms categories displaying in 3 colums as the shop, as it is set in the theme settings.
Could you tell me exactly where and how to get this?
Thanks
January 18, 2017 at 18:38 #150133RaduModeratorHi,
Try to add this function in your child theme functions.php
COPY CODEfunction kleo_woo_body_classes_custom($classes = '') { if ( is_tax('subject') ) { $classes[] = 'kleo-shop-cols-' . sq_option( 'woo_shop_columns', '3' ); } return $classes; } add_filter('body_class','kleo_woo_body_classes_custom');
Let me know if this will work and the custom taxonomy will have same layout as default woocommerce shop page
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 18, 2017 at 18:52 #150137commonplacesParticipantGreat!!! Thanks a lot for the solution!
May I ask you the code if there is two customs categories?
Do i have to duplicated the function (that what’s i dis at the moment) but a way to say someting like
if ( is_tax(‘subject’) ) OR ( is_tax(‘serie’) ) {…
Could you help me to write the right code?
Anyway thanks a lot already!
January 18, 2017 at 20:18 #150142RaduModeratorYou will have to use
COPY CODEfunction kleo_woo_body_classes_custom($classes = '') { if ( is_tax('subject') || is_tax('serie') ) { $classes[] = 'kleo-shop-cols-' . sq_option( 'woo_shop_columns', '3' ); } return $classes; } add_filter('body_class','kleo_woo_body_classes_custom');
|| it’s equal with OR
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 19, 2017 at 17:23 #150227RaduModeratorYou’re welcome
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.