Search Form in Header - by Hoellwarth - on WordPress WooCommerce support

3 replies3 participantsUpdated by Robert Hall

  • Avatar: Hoellwarth
    Hoellwarth
    Participant

    Hi there,

    When I search something trough the search form placed in header, the website returns, as result, both products and articles containing the word (or part of it) I wrote. i.e.: if I search “divan” I get both products which title contains the word “divan” but even all the products that have the word “divan” in the description, misleading the user’s search.

    So my questions is: is it possible to avoid the search form to look into products’ description but just in product title and brand?

    Thank you in advance for your kind reply.

    3 Answers

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Unfortunately there is no such possibility. Sorry.

    Regards,
    Eva Kemp.

    Avatar: Hoellwarth
    Hoellwarth
    Participant

    Well I bet there was no possibility to do it easily, that’s why I asked your support. However, can you kindly tell me which file and functions regulate the header search form, please? I’ll take a deeper look in it.

    Regards.

    Avatar: Robert Hall
    Robert Hall
    Participant

    Hello,

    You can check the following files.
    – \themes\royal\searchform.php
    – \themes\royal\woosearchform.php

    Regards,
    Robert Hall.

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register