pre-filled search bar

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12186
    Laurent Le Ny
    Laurent Le Ny
    Participant

    Hello !
    I am looking for a solution to place the search form below an article with the title of this article pre-written in the search bar.
    I searched in options but I feel this is not possible.
    Do you have an idea ?
    It’s not for me but for a customer.
    Thank you

    #12188
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    It is actually possible, without changing anything in the core code, but with a small custom snippet.

    Try placing this into the functions.php file in your currently active theme directory:

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

You must be logged in to reply to this topic.