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)
-   -   Different styles for excerpts and full posts? (http://forum.bytesforall.com/showthread.php?t=3977)

daniel3ub Oct 20, 2009 05:21 PM

Different styles for excerpts and full posts?
 
Hi, everybody!

I was wondering if there is a way to apply different styles to excerpts and full posts. I'd like my full posts to have a different bg color than the excerpts, is it possible?

Thanks a lot!

juggledad Oct 20, 2009 05:42 PM

there is no way in the current settings to do what you want. You would have to edit the code to identify when a post will be an excerpt and then add a new class to the <div...> for the post. Then you could use CSS to build a selector and rule for the excerpts

daniel3ub Oct 20, 2009 05:45 PM

I was thinking about this.
I'll try to do it, and if I manage to get it, I'll post the code here, is it ok?
Just cannot promise anything :(

Thank you!

juggledad Oct 20, 2009 06:09 PM

Part of the problem will be that the code builts the past header and byline before it determines it the opst is an excerpt or not. You will need to build a routine like bfa_post_bodycopy() (see bfa_postpatrs.php) and put a call toi it in 'The LOOP' as the first thing. Have it check to see if this post will be an excerpt, and set a global that you can test in 'The LOOP' code in teh /* Post Container starts here */ code


All times are GMT -6. The time now is 09:51 AM.

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