This topic has 7 replies, 2 voices, and was last updated 1 years, 4 months ago ago by HmirceaD
Hello,
I have a product with the filters added on my subcategory page.
No matter what settings I change they stay on top of the products instead of floating to the left section of the page.
Thanks in advance!
Hello, HmirceaD,
Thank you for contacting us and for using XStore.
We can’t log in. Please check and provide the correct credentials.
Kind Regards,
8theme team
Sorry for that, added new details
Hello, HmirceaD,
Thank you for your response.
Please go to Pages > click on Shop > change sidebar position https://prnt.sc/-S95TCRBrkdq https://www.8theme.com/documentation/xstore/theme-installation/8theme-page-post-layout-settings-8theme-post-options/
Kind Regards,
8theme team
Thanks for the solution.
I have a problem with this though.
All of the categories have subcategories that show up on the category page.
I seems that the padding for the sidebar is added even though the filters is not added.
Is there a way to display this padding only on subcategory page (where the products are) and not on the category page?
Hello, HmirceaD,
We created for you a “Hide sidebar on parent categories“ code snippet with code:
add_filter('etheme_page_config', function($layout) {
if ( class_exists('WooCommerce') && is_product_category() ) {
$cat = get_queried_object();
// if is not subcategory
if ( $cat->parent > 0 ) {}
else {
set_query_var('et_cat-sidebar', 'without');
$layout['sidebar'] = 'without';
}
}
return $layout;
});
Backend result: https://prnt.sc/iwe67zR7kUk2
This code makes the sidebar disabled on parent categories pages.
Kind Regards,
8theme team
It works great, thanks Rose!
The issue related to '‘Shop sidebar does not display in the left position’' has been successfully resolved, and the topic is now closed for further responses