Chagne Search Form to Search whole site - by creatability

This topic has 4 replies, 2 voices, and was last updated 9 years, 9 months ago ago by Eva Kemp

  • Avatar: creatability
    creatability
    Participant
    February 6, 2015 at 21:50

    Hi is there a way to change the function of the search bar to look at the whole site instead of just looking at post or products? If not, then is there a way to use another search form that will.

    I have another one installed but it would not override the default plugin.

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    February 6, 2015 at 22:36

    Hello,

    You need edit the file wp-content/themes/royal/woosearchform.php (line 15), remove the code <input type="hidden" name="post_type" value="product" /> and you’ll have default WordPress search form.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: creatability
    creatability
    Participant
    February 6, 2015 at 23:30

    Sweet! Thanks 🙂

    Avatar: Eva
    Eva Kemp
    Support staff
    February 6, 2015 at 23:54

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Chagne Search Form to Search whole site’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.