Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   Alternate Post Styling for Different Authors? (http://forum.bytesforall.com/showthread.php?t=1717)

stuffman May 19, 2009 11:48 AM

Alternate Post Styling for Different Authors?
 
I'm setting up a blog for the store I work at, which has different departments set up as different authors (mainly the Deli and the rest of the store). The question is, is it possible to have the different authors' posts styled differently. For instance, I'd like the deli's posts to feature the deli logo and colors while the other departments use the regular theme.

Is it possible to use alternate CSS classes based on the author of the content?

Thanks for your help!

Flynn May 19, 2009 09:10 PM

This will be possible in WP 2.8 which is coming soon. It'll add the author name to the classes for the <BODY> tag

There's already body classes in Atahualpa 3.3.3 but it does not include the author name yet

paulae May 20, 2009 05:30 AM

Until the changes in WP 2.8 come along, you could accomplish this using custom templates for each author.

My newspaper has some columnists who want their photo and contact information at the bottom of each of their posts, so I made custom post templates for them. That works great.

stuffman May 21, 2009 11:37 AM

Thanks guys.

Until then, I was thinking about editing the index.php to spit out different <div> tags for the different authors so I can further edit the style.css to apply different styles. For instance, instead of <div class="post">, have it make <div class="post-store">, <div class="post-deli">, etc and give them all separately defined css atributes. The only thing is I can't figure out how to access whatever variable contains the current post's author name. Any help or other suggestions?

stuffman May 21, 2009 11:42 AM

Of course, I figured it out like 10 seconds after I posted that ;)


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

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