In this post, i’ll show you how easy it is to create your own custom search results page template for Genesis.
The results page this code creates is only displayed when using the built in native WordPress search widget or function.
Installation Steps #
There’s 3 code blocks connected together in this Gist.
- Firstly, Upload the file named search.php to the root directory of your Genesis child theme.
- Secondly, copy & paste the PHP code from functions.php to the end of your child themes functions.php file
- Last of all, copy the CSS code from the Gist labelled style.css and paste it near the end of your child themes style.css file before the start of your Media Queries.
The code assumes you’re using the Genesis > Theme Settings > Content Archives > Display Entry Content settings.