Home Forums Basel support forum How I can remove the "sort by"and "price filter",if its nothing on shop filters

How I can remove the "sort by"and "price filter",if its nothing on shop filters

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

    Hi,
    How I can remove the “sort by”and “price filter”,if its nothing on shop filters.

    I have tried to remove this filters for a long time, but I don’t know why is not working if my shop filters on the widget area is empty.

    Please help me.

    Here is an image.

    thanks

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

    Artem Temos
    Keymaster

    Hi,

    Add the following code snippet to the functions.php file in your child theme to remove default sorting and price filters

    add_filter( 'basel_use_custom_price_widget', '__return_false', 10 );
    add_filter( 'basel_use_custom_order_widget', '__return_false', 10 );

    Regards

    #68509

    Thanks but now appears this thing that is similar to the order widget, so its possible to remove that thing too.

    Thanks

    here is an image of the problem when I add the codes.

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

    Artem Temos
    Keymaster

    Try to add this line as well

    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

    #68617

    THANK YOU VERY MUCH !!!!!!!

    #68638

    Artem Temos
    Keymaster

    You are welcome.

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

The topic ‘How I can remove the "sort by"and "price filter",if its nothing on shop filters’ is closed to new replies.