WordPress.org

Ready to get started?Download WordPress

Forums

Problem with "page" div (33 posts)

  1. yoshid
    Member
    Posted 2 years ago #

    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

  2. Jeff Clark
    Member
    Posted 2 years ago #

    Looks like your footer is being called within the page div. Close it before the end of this template page.

  3. yoshid
    Member
    Posted 2 years ago #

    <?php get_footer(); ?> is outside of the page div. if it's being called then I'm not sure why.

  4. Jeff Clark
    Member
    Posted 2 years ago #

    On the contact page you would be correct. But the other pages where that is not showing the white background. I can say with certainty that it is within the page div.

  5. yoshid
    Member
    Posted 2 years ago #

    I agree, but...
    the news page is controlled by the index.php and on that page the get footer script is outside of the page div yet it's calling it within. I'm so lost...

  6. Jeff Clark
    Member
    Posted 2 years ago #

    Most likely you just forgot to close another div somewhere. Happens all the time.

    If you need someone to take a closer look for you check out wordpressrepair.com

  7. yoshid
    Member
    Posted 2 years ago #

    ok, I'll give it a shot. thanks for your help jclark.

  8. yoshid
    Member
    Posted 2 years ago #

    I checked my divs on the index.php page. their all closed.

  9. Jeff Clark
    Member
    Posted 2 years ago #

    Yes I would agree. The issues if I am not mistaken is on the news page and a few others? You want the white background correct?

  10. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Check which template file is used to generate the current page... index.php is the default, review how pages/posts are formed with your theme.

  11. yoshid
    Member
    Posted 2 years ago #

    yes, the news page displays all the new blog posts. other pages are fine. if you look at the page div in firebug or something like that, you'll notice on the news page the "page" div does not stretch down to the bottom. I agree it looks like there is an open div or a float somewhere I just can't see where.

  12. yoshid
    Member
    Posted 2 years ago #

    I have gone through the index.php few times, I don't see a problem.

  13. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Index.php is not the page/post template.

  14. yoshid
    Member
    Posted 2 years ago #

    it is in this template.

  15. Jeff Clark
    Member
    Posted 2 years ago #

    Is your index.php file what you are using to control your news page?

  16. yoshid
    Member
    Posted 2 years ago #

    yes it is.

  17. yoshid
    Member
    Posted 2 years ago #

    to make this even more complicated, when I trash all posts except one, page div works fine.

  18. Jeff Clark
    Member
    Posted 2 years ago #

    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?

  19. yoshid
    Member
    Posted 2 years ago #

    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(); ?>

    -----------------------------------------------------------

  20. Jeff Clark
    Member
    Posted 2 years ago #

    Its coming from your content.php file then. Something is not closed in there.

  21. yoshid
    Member
    Posted 2 years ago #

    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...

  22. yoshid
    Member
    Posted 2 years ago #

    fcuk, that didn't work either.. @#$%&

  23. Jeff Clark
    Member
    Posted 2 years ago #

    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?

  24. Jeff Clark
    Member
    Posted 2 years ago #

    never mind that isnt even being called haha. I thought for second that was out of the if statement

  25. yoshid
    Member
    Posted 2 years ago #

    the problem is on index.php for sure, but where...

  26. Jeff Clark
    Member
    Posted 2 years ago #

    ok process of elimination now. Try commenting out on of your side bars.

  27. yoshid
    Member
    Posted 2 years ago #

    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

  28. Jeff Clark
    Member
    Posted 2 years ago #

    I see its fixed!!!

  29. Jeff Clark
    Member
    Posted 2 years ago #

    No problem at all. If you ever need anything Web dev related check out my site wordpressrepair.com

    Good Luck

  30. 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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.