Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   [SOLVED] How can I show thumbnails in excerpts (http://forum.bytesforall.com/showthread.php?t=15822)

JulesG Nov 1, 2011 05:16 AM

[SOLVED] How can I show thumbnails in excerpts
 
Using Wordpress 321 and Atahualpa 371

I'm trying to show thumbnails before the excerpts but I can't get it to work. I'm not sure I understand how it works. I read other posts about this but it didn't help me.

In Configure Excerpts, I have selected Only Excerpts everywhere.

In the Post Thumbnails section, I have set Thumbnails Width and Height to 150 and Crop to No. Post Thumbnail CSS is set to the default:
float: left;
border: 0;
padding: 0;
background: none;
margin: 0 10px 5px 0;

In Post Thumbnails / Post Thumbnail CSS, it says:

Quote:

Style the Post Thumbnail. It is placed inside the 'bodycopy' of a post, right before the first paragraph of the excerpt:
<div class='post-bodycopy'>
<img POST THUMBNAIL HERE class='wp-post-image' />
<p>Post Excerpt starts here...</p>
</div>
Where and how do I "Style the Post Thumbnail" ?

Thanks for your help
Jules

GarethP Nov 1, 2011 05:40 AM

I think it's to do with the 'Stripping' of HTML tags.

I believe that in the Configure Excerpts Options page you need to add <img> and possible <div> in the 'Dont strip these tags' section - I believe you can go as far as adding <div class='post-bodycopy'> to not strip that specific <div>

lmilesw Nov 1, 2011 06:29 AM

A post thumbnail is what shows when you add a featured image via the featured image box in the right hand column of a post.

To style this thumbnail you use the Post Thumbnail CSS box in that section of the theme options.

JulesG Nov 1, 2011 04:41 PM

Hey ! It works... Thanks a lot Larry.

Without a formal manual, some things are difficult to find. This is one of them. Your explanation solved the problem immediately.

See here: http://julesgobeil.com/wpfr2/

Thanks
Jules

Problem solved !


All times are GMT -6. The time now is 12:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.