Home › Forums › WoodMart support forum › Removing Certain Categories from Filters on the Store Page
Removing Certain Categories from Filters on the Store Page
- This topic has 7 replies, 2 voices, and was last updated 1 month, 3 weeks ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
January 9, 2025 at 7:41 pm #628646
EcommerceParticipantHello,
We will create many subcategories for SEO purposes. However, I don’t want these subcategories to appear in the Category Filter section on the store page. How can I prevent this? Images are attached.
January 10, 2025 at 3:01 pm #628797
Aizaz Imtiaz AwanKeymasterHello,
Your site is not working. can you please share the wp logins details so i will further check on your site and give you a custom code.
Best Regards
January 10, 2025 at 3:11 pm #628804
EcommerceParticipantHello, the site is active. There may have been a brief access issue. I will send the admin details in a private message. It would be great if the requested feature can be implemented without using custom code. I’m waiting for your suggestion.
January 10, 2025 at 4:31 pm #628833
Aizaz Imtiaz AwanKeymasterHello,
Please add below Custom CSS code to Theme Settings > Custom CSS > Global custom CSS:
.widget_product_categories .product-categories .cat-item.cat-item-315 { display: none !important }
Best Regards
January 10, 2025 at 4:37 pm #628835
EcommerceParticipantDo I need to write the category’s ID number to prevent it from being displayed, I couldn’t understand the code? How can I find the category’s ID number? Does the expression ‘.cat-item.cat-item-315’ represent the category ID number?
Additionally, how can I prevent multiple subcategories from being displayed without adding them individually? What do I need to add to the code?”
For example: .cat-item.cat-item-315; .cat-item.cat-item-316; .cat-item.cat-item-317
January 11, 2025 at 3:31 pm #628964
Aizaz Imtiaz AwanKeymasterHello,
Yes, this expression
.cat-item.cat-item-315
shows the category ID number. You can find the category ID number while you edit the category in the URL. Please see the attached screenshot.Best Regards.
Attachments:
You must be logged in to view attached files.January 11, 2025 at 3:33 pm #628966
EcommerceParticipantHow can I add more than one category ID number to the code? Can you give me a sample template?
For example: .cat-item.cat-item-“315”; .cat-item.cat-item-“316”; .cat-item.cat-item-“317”
January 11, 2025 at 5:20 pm #628975
Aizaz Imtiaz AwanKeymasterHello,
Just change the class
.cat-item.cat-item-315
in this custom CSS code, duplicate the same code by copying it, and then change the id 315 to another category id like 185 :.widget_product_categories .product-categories .cat-item.cat-item-315 { display: none !important }
Best Regards.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register