• Hi folks,

    I want to move my woocommerce ordering / orderby drowdown into the top widget area. To accomplish this I pasted the HTML code for the orderby dropdown into a text widget in the widget area. Now I have two such products filters visible.

    Is there a way to remove only one of them? All solution I found remove both
    remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 );

    Is there a way to remove the duplicate, or a better way to move the orderby into the widget area?

    My site: http://www.fersketilbud.no

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support D Smith a11n

    (@dsmithweb)

    Automattic Happiness Engineer

    Hi there!

    It looks like you have both filter options in the widget areas now. Do you mind sharing how you removed the other one from the main template, so that others who might come across this thread can learn from it?

    Thread Starter anubisman

    (@anubisman)

    Hi,

    Good point. Yes, somehow the previous code with a small alteration did the trick:

    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10 );
    A 10 instead of 30.

    I don’t know what happened earlier when it affected both, but now it’s only affecting the main woocommerce ordering. The one I posted in the text widget stands put.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate & Move Orderby Dropdown menu’ is closed to new replies.