Home Forums WoodMart support forum Removing Certain Categories from Filters on the Store Page

Removing Certain Categories from Filters on the Store Page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #628646

    Ecommerce
    Participant

    Hello,

    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.

    #628797

    Hello,

    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

    #628804

    Ecommerce
    Participant

    Hello, 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.

    #628833

    Hello,

    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

    #628835

    Ecommerce
    Participant

    Do 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

    #628964

    Hello,

    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.
    #628966

    Ecommerce
    Participant

    How 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”

    #628975

    Hello,

    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.

Viewing 8 posts - 1 through 8 (of 8 total)