• Resolved dannymax

    (@dannymax)


    When I change the display type of a category to subcategory the page shows all of the subcategories which is great however I want to remove sorting options. When the parent category is standard or products I do want the sorting options to show.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    This can be done with some custom CSS. In Customize > Additional CSS, you can add the following code.

    .term-1234 .woocommerce-ordering {
    display:none;}

    Please note that the term-1234 will need to be replaced by the specific category number. Here is a link to how to find product category IDs: https://docs.woocommerce.com/document/find-product-category-ids/

    Thread Starter dannymax

    (@dannymax)

    Hi Maykato

    Thanks for that, I was hoping it could be done based on if the category was set to subcategory or standard. The problem is there will be a lot of pages to add and if new categories are added the css will have to be changed each time.

    Hi,

    I was hoping it could be done based on if the category was set to subcategory or standard.

    I understand your point. There isn’t a global setting for this in core WooCommerce, but you could achieve it by some custom coding – in which case we recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/

    Hi @dannymax

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove sorting when display type is Subcategorie’ is closed to new replies.