WordPress.org

Forums

Grisaille
[resolved] Posts text wrap (7 posts)

  1. breacher18
    Member
    Posted 2 years ago #

    I have noticed that in the .com version of this theme the text wraps around the featured image, where as on the .org version it places the text underneath the featured image. Can anyone help me with what bit of code I might be looking for, to change?

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

  3. breacher18
    Member
    Posted 2 years ago #

    Cheers, I will have a look to see if I can get it working from that.

  4. breacher18
    Member
    Posted 2 years ago #

    Doesn't seem to have the desired effect, just to confirm this is not in the post this is the view on the home page. http://www.breacher18.com

  5. breacher18
    Member
    Posted 2 years ago #

    *UPDATE it seems that the text wrapping works fine on all posts when viewed from the home page except the newest post where the text is placed underneath. Any Ideas?

  6. WPyogi
    Forum Moderator
    Posted 2 years ago #

    The CSS class assigned to the first one is different -- this:

    .attachment-post-thumbnail {
        text-align: left;
    }

    The later posts have this class and CSS:

    img.attachment-following-post-thumbnails {
        float: left;
        margin: 0 15px 25px 0;
    }

    You could try changing the text-align in the first CSS above to "float: left;" but it may mess up some other images elsewhere in your site. If that seems to be a problem, you could change it but specify only on the first page -- not sure it will work, but try adding this to the stylesheet:

    .home .attachment-post-thumbnail {
        float: left;
    }
  7. breacher18
    Member
    Posted 2 years ago #

    .attachment-post-thumbnail {
    float: left;
    }

    Nice one this fixed it, thanks :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic