Home Forums WoodMart support forum How to remove "sort by" & price filter

How to remove "sort by" & price filter

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #176556

    kostasm
    Participant

    Hello,

    I searched a lot in your forum to find out how to remove these two default filters “sort by” & price filter but i couldn’t find anything useful. (check screenshot)
    I found an old post (2017) with your answer telling to put these two lines on functions.php
    add_filter( ‘basel_use_custom_price_widget’, ‘__return_false’, 10 );
    add_filter( ‘basel_use_custom_order_widget’, ‘__return_false’, 10 );
    i did that but it doesnt work…
    Any other solutions?

    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #176651

    Artem Temos
    Keymaster

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    add_action( 'wp', function (){
    	add_filter( 'woodmart_use_custom_order_widget', '__return_false' );
    	add_filter( 'woodmart_use_custom_price_widget', '__return_false' );
    }, 10 );

    Regards

    #177786

    kostasm
    Participant

    Thank you very match!

    #178072

    Artem Temos
    Keymaster

    You are welcome!

Viewing 4 posts - 1 through 4 (of 4 total)