Problem with "page" div
-
hi everyone,
could somebody take a look at my project and tell me why my “page” div isn’t displaying properly on “news” page. I can’t see where the problem is, the div works fine on other pages.
here is the link: http://joygrafika.com/rooney/news/much appreciate
yoshid
-
to make this even more complicated, when I trash all posts except one, page div works fine.
as you noticed in firebug it looks like the wrapper div is swallowing the footer. So it looks like you are missing two closing div tags.
where is wrapper at? Is it in the index.php file?
it si, here is my entire index.php. all divs seem closed.
—————————————————————
<div id=”page”>
<?php get_header(); ?>
<?php get_sidebar(); ?><div id=”wrapper”>
<div id=”content”><?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
<small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small><div class=”entry”>
<?php the_content(‘Read more »’); ?>
</div><?php endwhile; ?>
<div class=”navigation”>
<div class=”alignleft”><?php next_posts_link(‘« Previous Entries’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘Next Entries »’) ?></div>
</div><?php else : ?>
<h2 class=”center”>Not Found</h2>
<p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
<?php include (TEMPLATEPATH . “/searchform.php”); ?><?php endif; ?>
</div> <!–end.post–></div> <!–end.content–>
</div> <!–end.wrapper–>
<div class=”clear”></div>
</div> <!–end.page–><?php get_footer(); ?>
———————————————————–
Its coming from your content.php file then. Something is not closed in there.
this template does not use content.php. all posts are brought to index.php.
I think I may have a work around, going to get rid of wrapper div from the index page and set up new content_news div in the stylesheet. not the most elegant way to do it but it should work. wrapper div seems to be messing things up in this template. serves me right for just grabbing the first 3 col template I found…fcuk, that didn’t work either.. @#$%&
haha. Your are right sorry I didnt look at the context of the index.php file you sent over.
try commenting out the search function?
never mind that isnt even being called haha. I thought for second that was out of the if statement
the problem is on index.php for sure, but where…
ok process of elimination now. Try commenting out on of your side bars.
we’re thinking along the same lines π
I think I got it to work, went through index.php and got rid of what did not needed to be there. I’m back in business!!!I really really really appreciate you help jclark, you da’man!
yoshid
I see its fixed!!!
No problem at all. If you ever need anything Web dev related check out my site wordpressrepair.com
Good Luck
jclarck32 – Just FYI, we really don’t like folks advertisting their own sites here. If you want to advertise there are other places. The forums are for helping people here.
Also your domain violates the WordPress trademark. You can’t have ‘wordpress’ in your domain name. See http://wordpressfoundation.org/ for more details.
thanks for the info
The topic ‘Problem with "page" div’ is closed to new replies.