Created
March 25, 2019 05:36
-
-
Save kristarella/85cf80db552803242366d610ef86e282 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'the_content', 'add_thing_to_search_page' ); | |
function add_thing_to_search_page( $content ) { | |
// Check if it's the search page | |
if ( is_search() ) { | |
$mycode = 'Put your HTML here'; | |
return $mycode . $content; | |
} | |
return $content; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment