Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] WP – Search Results Page Messes Up Re: [Solved] WP – Search Results Page Messes Up

#77273
silvers
Member

don’t worry guys i sorted the problem out…

for some reason on the search page it was not liking the fact that in the header.php the body tag was given a class through php like this…

<body <?php body_class(); ?>>

this was working fine for the other pages. but on the search page it was messing up. so in the search.php i took out the code that calls the header.php = <?php get_header(); ?> and replaced it with all the content from the header.php instead. then i deleted the php from the body tag.

so it was just a plain <body>

maybe this isn’t the best way to handle it but it worked!!

if anyone can explain what the problem was, i would love to know!!! thanks :D