Support » Fixing WordPress » Single post coding.

  • Hi I’m having a problem with content image becoming centered over my navigation.jpg and image2.jpg which I have manually added into singlepost.php.

    When I enter a post on my wordpress site everything is displayed correctly when but when I hit the refresh button the main image in the post becomes centered covering another div element containing a navigation image.

    Here is the code:

    <div id="post-<?php the_ID(); ?>" <?php post_class('primary'); ?>>
    <div style="float:right; margin-right:16px;"><?php next_post(' %', '<img src="">', 'no'); ?></div>
    <div style="float:right; margin-right:5px;"><?php previous_post(' %', '<img src="">', 'no'); ?></div>
    <div align="center"><img src="">			   </div>
                <?php if(!atom()->post->getMeta('hide_title')): ?>
                <h2 class="title"><?php atom()->post->Title(); ?></h2>
                <?php endif; ?>
                <div class="post-content clear-block">
    <div style="float:left; margin-top:100px;"><?php previous_post(' %', '<img src="">', 'no'); ?></div>
    <div style="float:right; margin-top:100px; margin-left:3px;"><?php next_post(' %', '<img src="">', 'no'); ?></div>
    <div style="float:right;"><img src=""></div>
    <?php the_content(); ?>

    [Please use the code buttons when posting code]

    I really need input on what I’ve done wrong.

    Here is url:Humourplanet


  • The topic ‘Single post coding.’ is closed to new replies.