Messed up navigation on additional pages (4 posts)

  1. adeking
    Posted 8 years ago #


    I have created two additional pages for my blog at -

    For one of my pages I have not allowed comments, and for this page the navigation appears in the main content area. I have created another additional page with comments allowed and the navigation is fine.

    Any suggestions - a link to the offending page is below...

    Thanks for all your help.

  2. richarduk
    Posted 8 years ago #

    You've got a missing </div>

    According to firefox it's the end of this one <div id="wrapper">

    <br class="clear"> is also not closed

    (Firefox / View source + HTML validator plugin)

  3. adeking
    Posted 8 years ago #


    Thanks for your reply. I was already aware that I had a missing div and this makes no difference. Also the closing of br makes no different either. The code for page.php is below, it would be greatif someone could have a quick look over to see if it is missing anything.

    <?php get_header(); ?>
      <div id="main-c">
        <div id="main">
          <div id="bigger">
            <div class="bar-head"></div>
            <a id="go-content"></a>
          <br />
    	   <h2 class="pagetitle"><?php the_title(); ?></h2>
     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="entry" id="post-<?php the_ID(); ?>">
    				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    				<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    				<?php comments_template(); ?>
    	  <?php endwhile; endif; ?>
    	 <div style="margin:15px"><?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?></div>
    <?php get_sidebar(); ?><?php get_footer(); ?>


  4. richarduk
    Posted 8 years ago #

    To be honest it's a bit difficult without comparing it with the original. My guess is that it's the markup that's being altered as anything php would have delivered nasty error messages.

    Therefore I would be looking at the divs that have been added by the comments are closed code e.g for the p class=nocomments, which contains comments are closed. But I couldn't see anything there.

    Suggest you either start again from scratch or better still remove one bit of code at a time until things change one way or another.

    Sorry couldn't help

Topic Closed

This topic has been closed to new replies.

About this Topic