Single post coding. (1 post)

  1. Marvon85
    Posted 2 years ago #

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


Topic Closed

This topic has been closed to new replies.

About this Topic