Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Are you looking for support with the appearance of it?
No, creating it. I am just trying to create a simple page with a search form on it.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Yes, i have reviewed that one.
With that guide I successfully created a search page. However, nothing else was displayed but the search form. A totally blank page but the search form in the left hand corner. No theme, no nothing.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Can you link the webpage with this issue?
Sure. I just want to mention that this is not theme specific. I would like to use it on free themes as well as commercial themes.
Landing page: http://www.sikkervaccination.dk
Search box test (fail): http://www.sikkervaccination.dk/search
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
I don’t know how your theme handles its templates, but on a general free theme you’d need to use get_header and get_footer functions.
Meaning that I should include those in the searchpage.php file?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Yes, or which ever functions your theme uses to bring relevant template files into your searchpage.
I see. Thank you so much for your help Andrew. Much appreciated!
Phil
(@owendevelopment)
Without a header and footer, no theme loads so be sure to add them. You can use a page template like page.php as a starting place and add your own code after.
It resolved the issue.
Using the guide http://codex.wordpress.org/Creating_a_Search_Page together with adding header and footer made the trick. Some additional modifications had to be made to make it work with the theme I’m using.
Thanks again for your help!
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
And Thanks to you and Phil for contributing to the WordPress community π