I’m in the process of creating a page header for search results and was wondering whether there was a template tag where I can call the search query and display it. I’d like to create a customised headline and stick the search query in a search form field as part of the header.
I’m seeking to design a search form from scratch that contains the search query and my own placeholder text and have it in the Header. I’m trying to bring search to the foreground rather than just in the nav bar and in doing so, I’m keen to be able to have more control over how the search results page looks.
I’m cool with the HTML and CSS. What I’m not yet cool with is the best mechanism for displaying the entered search query in a search form field in the header of the search results page.
If you have any thoughts, I’d be very grateful to hear them.