-
AuthorPosts
-
February 18, 2014 at 4:18 pm #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
February 18, 2014 at 8:28 pm #225713Hi 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,
DevinFebruary 18, 2014 at 10:24 pm #225781Hi Devin,
it removes the product sorting on all pages.
Regards: McGawain
February 18, 2014 at 11:30 pm #225811Hey!
Please try adding following code to Quick CSS
.woocommerce .product-sorting { display: none; }
Best regards,
YigitFebruary 18, 2014 at 11:40 pm #225816My mistake, it should be:
#top.tax-product_cat .product-sorting {display:none;}
February 19, 2014 at 11:08 am #226102Hi Devin,
it still removes the product sorting on all pages.
Regards: McGawain
February 20, 2014 at 2:16 pm #226752Hey!
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!
YigitFebruary 23, 2014 at 2:04 pm #228120Hey!
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)
February 23, 2014 at 4:44 pm #228131Hey!
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,
DevinFebruary 23, 2014 at 5:53 pm #228148Hi,
“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
February 24, 2014 at 2:16 am #228284Hey!
Please contact woocommerce support or hire a freelance developer to fix it for you. For further customization, please visit Werkpress.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.