Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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?


  #1  
Old Oct 20, 2009, 06:21 PM
daniel3ub
 
26 posts · Jul 2009
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, 06:42 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 20, 2009, 06: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, 07:09 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
excerpts, style



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 03:59 PM
Showing Excerpts or Full Post Depending Upon Number of Posts LindaS Excerpts, Read more, Pagination 0 Sep 8, 2009 07: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 07:45 PM
full posts on Category pages without the link curious Page & Category Menu Bars 5 May 6, 2009 08:56 AM
Only show page title, not excerpts or full, on tag pages. Alphanon Excerpts, Read more, Pagination 2 Mar 3, 2009 11:18 AM


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


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