WordPress.org

Ready to get started?Download WordPress

Forums

Messed up navigation on additional pages (4 posts)

  1. adeking
    Member
    Posted 7 years ago #

    Hi,

    I have created two additional pages for my blog at -
    http://www.macmillan-academy.org.uk/staff_blogs/mrking/

    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...
    http://www.macmillan-academy.org.uk/staff_blogs/mrking/?page_id=13

    Thanks for all your help.

  2. richarduk
    Member
    Posted 7 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
    Member
    Posted 7 years ago #

    Hi,

    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'); ?>
    
    		</div>
    				<?php comments_template(); ?>
    
    	  <?php endwhile; endif; ?>
    	 <div style="margin:15px"><?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?></div>
    </div>
    
    <?php get_sidebar(); ?><?php get_footer(); ?>
    </div>

    Thanks

  4. richarduk
    Member
    Posted 7 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

Tags