Tagged: Excerpt
- This topic has 19 replies, 5 voices, and was last updated 11 years, 8 months ago by Nancy. 
- 
		AuthorPosts
- 
		
			
				
December 12, 2013 at 10:21 am #18218funergy MemberHello, 
 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! 
 MikeDecember 12, 2013 at 1:00 pm #18222Trishah MemberTry adding some css to the thumb img or thumb div like float:left;ordisplay:inline-block;or try using both.December 12, 2013 at 7:00 pm #18227December 13, 2013 at 1:13 am #18241funergy MemberI 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!December 13, 2013 at 3:32 am #18243Trishah MemberAdd this to your custom css or child theme style.css .attachment-thumbnail.wp-post-image { float: left; margin: 0 15px 5px 0; }December 13, 2013 at 6:16 am #18250funergy MemberWorked, thanks so much! December 13, 2013 at 6:32 am #18253Trishah MemberWhoo hoo! 😀 December 13, 2013 at 6:34 am #18254March 1, 2014 at 10:06 pm #20849laurenceuk MemberI 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 March 2, 2014 at 4:27 am #20858Trishah MemberYou’re welcome Laurence. 🙂 March 6, 2014 at 12:51 pm #21004Nancy ParticipantBeen 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? March 6, 2014 at 1:32 pm #21006Trishah MemberHi 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;
 }March 6, 2014 at 1:37 pm #21007Sakin 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; }March 6, 2014 at 2:09 pm #21008Nancy ParticipantThanks 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. March 6, 2014 at 2:23 pm #21010Trishah MemberHi 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. March 6, 2014 at 2:49 pm #21012Nancy ParticipantThanks for the tip! Very useful plugin. March 6, 2014 at 7:09 pm #21019Sakin KeymasterMarch 7, 2014 at 8:30 am #21045Nancy ParticipantSakin – 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? March 7, 2014 at 9:31 am #21046Sakin 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. March 7, 2014 at 10:28 am #21050Nancy ParticipantPerfect! Thank you! The custom CSS feature in the plugin is AWESOME! 
- 
		AuthorPosts
- The topic ‘Excerpt with thumbnail’ is closed to new replies.
