Brengulis Posted February 7, 2022 Share Posted February 7, 2022 Hello Prestashop community, is there a way to disable sub-category slider on SPECIFIC category page, while it remains active on other category pages? I assume i could somehow do it with css or some other code, but how to targer class on ONLY SPECIFIC category page? All the help and tips are highly appreciated. Link to comment Share on other sites More sharing options...
JBW Posted February 7, 2022 Share Posted February 7, 2022 The body contains CSS classes with category ID and name in it. Link to comment Share on other sites More sharing options...
Brengulis Posted February 8, 2022 Author Share Posted February 8, 2022 15 hours ago, JBW said: The body contains CSS classes with category ID and name in it. Hi. Thanks for answer, i tried your way but it didnt seem to take effect, even after chace cleaning and stuff. What could be the problem? This is the custom css code i used: #category .category-id-161 .category-metalworking-equipment .block_subcategories { display:none!important; } Link to comment Share on other sites More sharing options...
JBW Posted February 8, 2022 Share Posted February 8, 2022 Use the inspect function in your browser to see which CSS is active Link to comment Share on other sites More sharing options...
Brengulis Posted February 8, 2022 Author Share Posted February 8, 2022 56 minutes ago, JBW said: Use the inspect function in your browser to see which CSS is active What should i inspect - .block_subcategories? I'm sorry, i don't quite get it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now