Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

Different styles for excerpts and full posts?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Oct 20, 2009, 05:21 PM
daniel3ub
 
26 posts · Jul 2009
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!
  #2  
Old Oct 20, 2009, 05:42 PM
juggledad's Avatar
juggledad
 
22,167 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #3  
Old Oct 20, 2009, 05:45 PM
daniel3ub
 
26 posts · Jul 2009
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!
  #4  
Old Oct 20, 2009, 06:09 PM
juggledad's Avatar
juggledad
 
22,167 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support

Bookmarks

Tags
excerpts, style

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RSS feed delvers full posts rather than excerpts AlanD RSS, Feeds & Subscribing 5 Sep 29, 2009 02:59 PM
Showing Excerpts or Full Post Depending Upon Number of Posts LindaS Excerpts, Read more, Pagination 0 Sep 8, 2009 06:27 AM
Atahualpa 3.4 : EXCERPTS new option to read the full post after [...] does not work benoit Excerpts, Read more, Pagination 2 Jul 9, 2009 06:45 PM
full posts on Category pages without the link curious Page & Category Menu Bars 5 May 6, 2009 07:56 AM
Only show page title, not excerpts or full, on tag pages. Alphanon Excerpts, Read more, Pagination 2 Mar 3, 2009 10:18 AM


All times are GMT -6. The time now is 10:01 AM.


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