[Support request] Add ID to Search Form Generate Press

Home Forums Support [Support request] Add ID to Search Form Generate Press

Home Forums Support Add ID to Search Form Generate Press

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1446715
    Leapforce

    Hi Generatepress,

    I have been trying to add an ID to the searchform on my website. I’ve looked through the forum but couldn’t find the correct one.

    I’m trying to add id=”search” to the search form located on the navigation.
    https://nlleapfo-kebumen.savviihq.com/

    I’ve tried editing the searchform.php but the changes I’ve made is not effecting the site.

    Any pointer is greatly appreciated.

    Thanks

    #1446835
    David
    Staff
    Customer Support

    Hi there,

    you can use the generate_navigation_search_output filter.
    Heres an example of it to add placeholder text.
    You can use the same snippet to add an ID to the HTML:

    https://docs.generatepress.com/article/generate_navigation_search_output/#add-a-placeholder

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.