Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #940717

    How can I remove this sorting block?

    sorting options

    I have tried removing the actions added in config.php,

    avia_woocommerce_overwrite_catalog_ordering and avia_woocommerce_frontend_search_params but no luck

    My child theme functions.php I added,

    	remove_action('woocommerce_before_shop_loop', 'avia_woocommerce_frontend_search_params', 20);
    	remove_action('woocommerce_get_catalog_ordering_args', 'avia_woocommerce_overwrite_catalog_ordering', 20);

    But sorting options are still there, I am a bit confused.

    Please do not give some CSS display none :)

    Thank you.

    • This topic was modified 6 years, 8 months ago by thatryan. Reason: fix image
    #941223

    Hey thatryan,

    Your screenshot is not loading, so I’m not sure what you are referring to. Could you post a link to where we can see the actual element instead maybe?

    Best regards,
    Rikard

    #941233

    Strange thought I fixed the image sorry, access to view is in private. It is the default sorting block…

    #942094

    Hi,

    The easier way is to add

    .product-sorting { display: none; }

    And that will hide it.

    let us know if you need anything else.

    Best regards,
    Basilis

    #1249850

    try this in your efond-child functions.php file

    add_action( 'before_woocommerce_init', function() {
    remove_action( 'woocommerce_before_shop_loop', 'avia_woocommerce_frontend_search_params', 20 );
    } );
    #1250121

    Hi HuxburyQuinn,

    Thank you for your input :)

    Best regards,
    Victoria

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.