Home Forums WoodMart support forum Search Validation

Search Validation

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #459070

    john-7327
    Participant

    Hi there, Since updating to the latest version of the Woodmart theme I have an issue with the search form..
    My search form has categories on the side. In the past version you could select one of the categories in the drop down list next to the search form and hit the search button icon and it would allow you to search without entering anything in the search field. So it would take you to a page showing all products in that category.

    Now in the latest version if you don’t enter anything in the search field you get a javascript validation “Please fill in this form”

    Is there a way to remove this validation from the search field so it can take you to the category page when you click on search as it did in the past version.

    Screen shot attached.

    #459071

    john-7327
    Participant

    here is the attachment

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

    Hello,

    Please add this code to the functions.php of the child theme:

    add_filter('woodmart_show_required_in_search_form', '__return_false');

    If you have any questions please feel free to contact us.

    Best Regards

    #459324

    john-7327
    Participant

    Excellent solution. Works perfectly! Thanks so much.

    #459541

    You are welcome! We are here to help.

    Wish you a wonderful day!

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

The topic ‘Search Validation’ is closed to new replies.