Support » Plugins and Hacks » Hacks » Insert Image into the_content on Home Page

  • Hello,

    I am trying to insert a floating div (that contains a slide show) into the bottom right hand corner of the last post on the home page (only.) I am able to insert the div after the content (by doing a count and then inserting <div> code if count==5), but when I position the image, the text doesn’t respond to the float and there is no text wrapping. Any ideas/suggestions would be much appreciated.

    Here is the code I’ve got so far:

    <?php if ($count==5) : ?>
    <?php the_content();?>
    <div id="slideshow">
    <?php if(function_exists('wp_content_slider')) { wp_content_slider(); } ?>
    </div>--><!-- END SLIDESHOW -->
    <?php else:?>
    <?php the_content();?>
    <?php endif;?>

    Here is the CSS:
    #slideshow {
    width: 300px;
    margin-top: -200px;
    display: block;

    The code above will position the image in the right place, but will cover up the text of the post instead of having text wrapping.

    Thanks much,

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Insert Image into the_content on Home Page’ is closed to new replies.