Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Terrible problems with WordPress Featured Images in the loop.

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #37337
    Preeminent
    Participant

    Hey guys, I’m having the worst time styling a few posts-from the loop- with featured images.
    I have the featured image floated to the left.
    It’s enabled in my theme’s function.php file.
    As you can see, I’m not specifically calling it with my code that’s below.
    I’m thinking that might be half my problem.

    I’m going for the standard blog layout that you see everywhere.
    Featured image on the left and then the post’s title and entry excerpt below that.
    As seen on the http://wp.tutsplus.com/ site, for example.

    If I keep with the floated featured images, the post’s title and entry just stay put in the middle of the div. If I try any margin or padding to move them whatsoever, things go all haywire. I’m thinking that it’s because the floated featured image is just kind of “there”. I’m not specifically calling it in the code. I’m just rambling now. Does anyone have any tips for me, on this?

    Here is the code I’m using to pull in the last 5 posts:









    " rel="bookmark" title="">




    global $more;
    $more = 0;
    ?>






    Not Found












    #99957
    TheDoc
    Member

    This isn’t the best solution, but if you’re keen on not having the text wrap under the image, you can do something like this: http://jsfiddle.net/wfwx2/

    #100258
    Preeminent
    Participant

    Hey man! Sorry, I’ve been crazy busy. Thank you for throwing that fiddle together!

    #100264
    Preeminent
    Participant

    Unfortunately WordPress just won’t play nice. I wish it was something as easy at that, and it should be! Ugh.

    #100267
    TheDoc
    Member

    Do you have a link to your site? I can see where you’re going wrong.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.