Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #225534

    Hi Kriesi,

    I would like to remove the woocommerce product sorting only on shop pages, where product categories are displayed.

    I added the following css to the theme quick css:
    div .product-sorting {display: none;}
    but it removed the product sorting from all the shop pages. I want the product sorting would be visible on shop pages, where products are diplayed. Is it possible?

    I tried to put this:
    remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 );

    in enfold child theme functions.php, but nothing happened.

    Thanks

    #225713

    Hi McGawain!

    Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:

    
    #top.archive .product-sorting {
    display: none;
    }
    

    Regards,
    Devin

    #225781

    Hi Devin,

    it removes the product sorting on all pages.

    Regards: McGawain

    #225811

    Hey!

    Please try adding following code to Quick CSS

    .woocommerce .product-sorting {
    display: none;
    }

    Best regards,
    Yigit

    #225816

    My mistake, it should be:

    
    #top.tax-product_cat .product-sorting {display:none;}
    #226102

    Hi Devin,

    it still removes the product sorting on all pages.

    Regards: McGawain

    #226752

    Hey!

    Can you post the link to your page where you would like to display product sorting? I did not understand where you would like to remove
    I would like to remove the woocommerce product sorting only on shop pages
    I want the product sorting would be visible on shop pages

    Cheers!
    Yigit

    #228120

    Hey!

    the problem is: on the Woocommerce /Settings/ Products page, I can determine:
    1. the SHOP page to show wether categories, or to show products.
    2. a CATEGORY page to show wether subcategories, or to show products.

    I would like to remove the woocommerce product sorting on pages, that display categories. (It can be the shop page or a category page also) For example my shop page is: http://www.pytheasbooks.com/facsimile-books-shop/

    I want the product sorting would be visible on pages, that display products (It could be the shop page also, when I choose the setting in woocommerce, to show products) : http://www.pytheasbooks.com/product-category/new/

    So, I would like to show/not show woocommerce product sorting depending Woocommerce /Settings/ Products options.

    I hope I was clear, thanks

    Agnes (McGawain)

    #228131

    Hey!

    I’m still not clear on what you are looking to have done. The css above hides the sorting on woocommerce pages that present themselves as category archives but does *not* hide it on the general shop page.

    From your examples the facsimilie-books-shop shows the sorting but the product-category/new does not.

    Ultimately if you need a custom solution you would need to hire a freelance developer as this is already outside what we cover through support. Hiding the sorting options through css is doable and simple as long as the page has selectors we can grab on to. But within WooCommerce or the theme there isn’t an option to show/hide them on specific pages at will.

    Regards,
    Devin

    #228148

    Hi,

    “The css above hides the sorting on woocommerce pages that present themselves as category archives but does *not* hide it on the general shop page.”
    Yes, this is not a solution for my problem. It looks like, this problem can not be solved with css.

    Regards,

    Agnes

    #228284

    Hey!

    Please contact woocommerce support or hire a freelance developer to fix it for you. For further customization, please visit Werkpress.

    Best regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.