[Resolved] "No search results" page yields string of errors above header
I have a series of conditionals which places easingslider lite on the home page only, and other header images on each section of the site (and that section’s children). I thought I had every eventuality taken care of, but I see now that when somebody searches for something not on the site, it yields a bunch of warnings above the default home header, in this format:
Warning: in_array() expects parameter 2 to be array, null given in /home/content/11/12008011/html/wp-content/themes/twentytwelve-child/header.php on line 61
one for each else or elseif page header.
You can see the relevant header code here. Do you know of anything I can add to my conditionals to accommodate the no-search-results page? Thanks!
- The topic ‘[Resolved] "No search results" page yields string of errors above header’ is closed to new replies.