• Hallo

    I have been customising a theme so that it is more to what I want and I have hit a problem that I just can”t seem to solve.

    I have a sidebar on my pages that shows thumbnails of the most recent posts. This sidebar stays in place on all pages but one.

    When I added a second post to the page the sidebar moved position to the side of the first post.

    I want to get the side bar back to the top of the page, so it looks the same as the other pages.

    Here is a link so you can see what I mean.

    http://mr-o.com/news/?cat=10

    If someone could take a look at the code or has a solution it would be very much appreciated.

    Thanks, Mat

Viewing 4 replies - 1 through 4 (of 4 total)
  • The first step to fixing display problems is to correct any code errors.

    Added: You have lots of misplaced code that belongs in the document body not in the document head.

    Thread Starter matmochdre

    (@matmochdre)

    Thanks for the reply

    Sorry I’m no code wiz so a lot of what is said on the page you linked to doesn”t mean much to me.

    I’ve pretty much been using trial and error to get this far. So there’s a high probability that the code is all over the place.

    Can you be a bit more specific with regards to the misplaced code that belongs in th document body.

    Sorry for asking for more. Just very new to this.

    Best regards, Mat

    Everything from <div id="header"> to the </div> just before </head> need to be moved after the <body> tag. This is an issue with very basic html document structure, and I’d recommend a Google search on xhtml document structure to guide you with this.

    Thread Starter matmochdre

    (@matmochdre)

    Thanks again for the reply but this has me confused.

    When you look at the code for the page I linked to online it looks completly different to what I see when I open the page I created for this catagory.

    When I open the page to edit it I basically see the following. Is there something here that is wrong or out of place that would cause the sidebar to move?

    <?php get_header(); ?>

    <div class=”archive_single”>

    <div class=”left”><< <?php previous_post_link(‘%link’) ?></div>
    <div class=”right”><?php next_post_link(‘%link’) ?> >></div>
    <div class=”clear”></div>

    </div>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”single”>

    <div class=”single_post”>
    <h3><?php the_title(); ?></h3>

    <?php the_content(‘<p class=”serif”>Read the rest of this entry »</p>’); ?>

    <?php the_tags( ‘<p>Tags: ‘, ‘, ‘, ‘</p>’); ?>

    </div>

    </div>

    <?php endwhile; else: ?>

    <p>Sorry, no posts matched your criteria.</p>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can someone please check the code on this one page for me.’ is closed to new replies.