WordPress.org

Ready to get started?Download WordPress

Forums

Thumbnails Float Left in Theme (3 posts)

  1. SantaCruze
    Member
    Posted 1 year ago #

    Heya there,

    Ive a little problem with my theme and the thumbnail version. My Themecode looks like that:

    <div class="entry">
    <?php if (is_search()){
    the_excerpt();
    }
    if (is_category()){
    the_excerpt();
    the_post_thumbnail();
    }else{ the_content('Mehr lesen...');}
    ?>
    </div>

    Now the Question: The Thumbnail apears under the Text. What ive to change, to get the thumbnails floating left side at the text?

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    the post thumbnail image will have a css class which you can use in style.css; something like:

    .entry img.???? { float: left; }

    http://codex.wordpress.org/Function_Reference/the_post_thumbnail#Styling_Post_Thumbnails

    maybe you need to move the thumbnail code one line up.
    try and work with a tool such as Firebug http://getfirebug.com/ to identify the thumbnail class

  3. SantaCruze
    Member
    Posted 1 year ago #

    Heya there,

    Thnx for the Reply. I managed to get it working without that :-)

Topic Closed

This topic has been closed to new replies.

About this Topic