• Resolved asmith99

    (@asmith99)


    I inserted the following code`// remove default sorting dropdown

    remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 );

    // remove default sorting dropdown in StoreFront Theme

    add_action(‘init’,’delay_remove’);

    function delay_remove() {
    remove_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_catalog_ordering’, 10 );
    remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 10 );
    }`
    in my child theme. I found the code online. It did eliminate the drop down but it replaced it with the message “Showing the single result” in two places. I want the messages to be gone. Thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @asmith99 The text showing is always there, regardless if the drop down is there or not. It typically shows to the right of the drop down. It refers to a single result because only one product is being displayed.

    If you’d like to remove it, you can add this into your delay_remove function:
    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );

Viewing 1 replies (of 1 total)
  • The topic ‘Woocommerce Product Sorting Dropdown Deleted-now say”Showing the single result”’ is closed to new replies.