Remove gray header on Search Result page on WordPress

Put this css in your style. For Particular page use class “search-results” and you can replace “RED” color with your color. if css not apply then try with “!important” like background-color: red !important; .search-results .page-header { background-color: red; } If you like replace color with image then you can use css property “background-image”.

search results in custom template search.php

The search.php template is used, and the correct posts returned, when a search is performed with the ?s= query. Not ?search=. Make sure the name attribute of the input in your search form is s: <input type=”search” name=”s”> And your index.php file should absolutely not be using a custom query like that. Use the main … Read more

wordpress ajax search posts

You are using post_permalink() that is deprecated. Please use get_permalink() or the_permalink() and also make sure that ajax function is called successfully by simply returning any string from ajax function.