• 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="https://www.website.com/next2.jpg">', 'no'); ?></div>
    
    <div style="float:right; margin-right:5px;"><?php previous_post(' %', '<img src="https://www.website.com//prev2.jpg">', 'no'); ?></div>
    
    <div align="center"><img src="https://www.website.com/image1.jpg">			   </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="https://www.website.com//Navigationleft.jpg">', 'no'); ?></div>
    
    <div style="float:right; margin-top:100px; margin-left:3px;"><?php next_post(' %', '<img src="https://www.website.com/Navigationright.jpg">', 'no'); ?></div>
    
    <div style="float:right;"><img src="https://www.website.com/image2.jpg"></div>
    
    <?php the_content(); ?>
    
                </div>


    [Please use the code buttons when posting code]

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

    Here is url:Humourplanet

    Thanks.

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