Tagged: 

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #18218
    funergy
    Member

    Hello,
    I have the home page set to excerpt and featured image. The featured image was taking up too much space, so I switched it to a thumbnail so posts would like more like they do on Simple Catch. However, I can’t figure out how to get the text to wrap so that it is thumbnail on the left and except on the right.
    Could you help?

    Many thanks!
    Mike

    #18222
    Trishah
    Member

    Try adding some css to the thumb img or thumb div like float:left; or display:inline-block; or try using both.

    #18227
    Sakin
    Keymaster

    @funergy: Please add in your site URL and then I can check in.

    #18241
    funergy
    Member

    http://mikefunergy.com/

    I should mention I’m a total beginner, I don’t even know how I figured out how to make the images in the excerpt smaller!
    Thanks!

    #18243
    Trishah
    Member

    Add this to your custom css or child theme style.css

    
    .attachment-thumbnail.wp-post-image {
        float: left;
        margin: 0 15px 5px 0;
    }
    #18250
    funergy
    Member

    Worked, thanks so much!

    #18253
    Trishah
    Member

    Whoo hoo! 😀

    #18254
    Sakin
    Keymaster

    @Trishah: Thanks a lot 🙂

    #20849
    laurenceuk
    Member

    @Trishah,

    I have been searching for over a week how to do this and your:

    .attachment-thumbnail.wp-post-image {
    float: left;
    margin: 0 15px 5px 0;
    }

    Worked instantly and most importantly was easy to follow.

    Thank you.

    Laurence

    #20858
    Trishah
    Member

    You’re welcome Laurence. 🙂

    #21004
    Nancy
    Participant

    Been reading through this post and I feel like I am missing something obvious. I have a post with a small image (100×100) selected as featured image. In except view, I would like the text to wrap. I’ve added the custom CSS above and it doesn’t work for me. What am I missing?

    http://www.ipcrew.com/SHSTest/category/news/

    #21006
    Trishah
    Member

    Hi Nancy,

    What you were missing is that the images you want to change use a different css identifier. Try this instead:

    .attachment-featured-slider.wp-post-image {
    float: left;
    margin: 0 15px 5px 0;
    }

    #21007
    Sakin
    Keymaster

    @Nancy: You can add the following CSS in “Appearance => Theme Options => Custom CSS” box.

    .archive .entry-summary .wp-post-image {
        display: inline;
        float: left;
        margin: 0 10px 10px 0;
    }
    #21008
    Nancy
    Participant

    Thanks Trishah. That produces the desired result.

    Sakin – I tried your suggestion as well, but I didn’t have the same effect as Trishah. Are they working off the same image?

    I see that the first method is working off the attached thumbnail and the second of the featured post image. How does one attach a thumbnail to a post? Would that be a better method than using a small featured image? I could see in some instances I might want a larger image and in others a thumbnail.

    #21010
    Trishah
    Member

    Hi Nancy,

    I’ll let Sakin answer your specific questions because he knows his scripts the best 🙂

    What I do to figure out what css to use is with the FireBug addon to FireFox. I put up a page here to help people learn the basics: http://trishah.com/how-to-use-firebug/

    With the new version of FireBug, you can choose the element you have questions about on the left panel, then right-click in the right panel and choose “Add rule…” from the menu. Many times this will create the correct style identifier. This is how I got the style above that worked for you.

    #21012
    Nancy
    Participant

    Thanks for the tip! Very useful plugin.

    #21019
    Sakin
    Keymaster

    @Trishah: Thanks

    @Nancy
    : I see that the css that I gave you worked on your site. That CSS that Trishah gave you will also work but it will be for all the pages. The only I have you is only for Archive pages.

    #21045
    Nancy
    Participant

    Sakin – Than you. I’ve got your CSS to work for the archive pages. How can I get it to work for a Post Page. See – http://www.ipcrew.com/SHSTest/news/

    Should I use Trishah’s method?

    #21046
    Sakin
    Keymaster

    @Nancy: Simply replace the previous css with the following CSS.

    .blog .entry-summary .wp-post-image,
    .archive .entry-summary .wp-post-image {
        display: inline;
        float: left;
        margin: 0 10px 10px 0;
    }

    Which css to use depends on your requirement. But are fine, just different in conditions.

    #21050
    Nancy
    Participant

    Perfect! Thank you! The custom CSS feature in the plugin is AWESOME!

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Excerpt with thumbnail’ is closed to new replies.