• Resolved asmith99

    (@asmith99)


    Trying to get rid of “showing the single result”. Used this 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 );
    }

    to get rid of dropdown in child theme of storefront when this message appeared. Thanks!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    @asmith99 – you need more than just what is pasted, try also the following:

    add_action('init','delay_remove_result_count');
     
    function delay_remove_result_count() {
    remove_action( 'woocommerce_after_shop_loop', 'woocommerce_result_count', 20 );
    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
    }
    Kenin

    (@kbassart)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Eliminated sort dropdown-now says “showing the single result”’ is closed to new replies.