Home Forums WoodMart support forum How to remove the Price range filter from the shop filters area?

How to remove the Price range filter from the shop filters area?

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

    alexminza
    Participant

    The WOODMART Price filter does not appear in the Shop filters widget area (see attached screenshot), however it is still displayed by the theme.

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

    Artem Temos
    Keymaster

    Hi,

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

    add_filter( 'woodmart_use_custom_price_widget', '__return_false', 10 );

    Regards

    #39120

    alexminza
    Participant

    Thank you, figured it our after some digging.

    Why was such a choice made? Why isn’t it available via the Appearance – Widgets section?
    It is confusing as everyone would expect the widget to be there and to be able to change settings, remove, reorder, etc.

    #39158

    Artem Temos
    Keymaster

    Yes, it was not the best decision from our side. But unfortunately, we can’t change this option now since it will break all the existing website when customers will update the theme. And if you want to reorder it, you can simply add this widget manually via Appearance -> Widgets and then our default widget will not be shown. In such way, you can customize it. The only one option missed is to remove it. So it is possible with this simple code only.

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