- This topic is empty.
-
AuthorPosts
-
June 7, 2010 at 4:09 pm #29272
silvers
MemberHiya,
this is a site i am working on… http://www.silvermanwebdesign.co.uk/star
it looks ok but when i try to use the search function, the results page is totally messed up. i don’t understand as it’s pretty much the same template i am using on other pages.
please can someone help me? i am tripping out man! i’m scared as i don’t have much time till the deadline! :shock:
this is the code for my search.php page….
Code:About Us
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod temporSearch Results
id=”post-“>No posts found.
News and Events
Lorem ipsum dolor sit amet, consectetur12 Dec 2015 | 0 comments
Duis nec porttitor lorem
Integer lacus ante then ante ullamcorper ut vulputate..18 Dec 2015 | 5 comments
Aenean interdum
Vestibulum ante ipsum luctus ultrices antene posuere.Testimonials
Lorem ipsum dolor sit amet, consectetur" Better then what I had in mind. If you need any graphic work done don’t hesitate to pick Khan for the job. I highly recommend him for your next graphic project."
-John Doe site.com" Better then what I had in mind. If you need any graphic work done don’t hesitate to pick Khan for the job. I highly recommend him for your next graphic project."
-John Doe site.comJune 7, 2010 at 5:16 pm #77273silvers
Memberdon’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
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)- The forum ‘Back End’ is closed to new topics and replies.