• Resolved ylakdime

    (@ylakdime)


    I have been trying for a while now to get rid of the sort by dropdown that show up on mobile view on my woocommerce shop. These are the things I’ve tried so far, with no avail:

    added custom CSS:

    .woocommerce-ordering {
    display: none;
    }

    .prdctfltr_woocommerce_ordering {
    display: none;
    }

    Tried this plugin ( WooCommerce Extra Product Sorting Options ) and disabled all options in Customizer.

    Added this to functions.php:

    add_action( 'before_woocommerce_init', function() {
    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10 );
    } );
    			
    			add_action( 'before_woocommerce_init', function() {
    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10 ); // when using storefront replace 30 with 10
    remove_action( 'woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10 ); // when using storefront replace 30 with 10
    } );

    The dropdown only shows up on mobile view.
    Anyone has a clue?

    • This topic was modified 3 years, 7 months ago by ylakdime.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sorting / Ordering (prdctfltr_woocommerce_ordering) wont go away.’ is closed to new replies.