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 »

[SOLVED] Category-specific colors for post title text?


  #1  
Old Feb 5, 2013, 09:22 AM
emanuel1969's Avatar
emanuel1969
 
133 posts · Apr 2010
California
Send a message via Skype™ to emanuel1969
[SOLVED] Category-specific colors for post title text?

Hi,

Is it possible to make the post title text a different color if it is set to a certain category?
__________________
Emanuel
http://www.sferios.com
  #2  
Old Feb 5, 2013, 10:19 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
yes, use CSS. the category should be in the post classes.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 5, 2013, 01:37 PM
emanuel1969's Avatar
emanuel1969
 
133 posts · Apr 2010
California
Send a message via Skype™ to emanuel1969
I'm learning pretty fast, and I can feel that very soon I'm going to "get" a lot of things I should already be getting. But right now I still don't. So please indulge me with a few silly questions here...

I already knew that if this was possible it would involve CSS. I've gotten pretty good at editing CSS files, figuring out what the code applies to and making changes. I can also add *new* CSS to the inserts filed in the theme options. The thing is, though, I have no idea what new code to add if it involves complicated things like functions (which I'm imagining this utilizes).

So I'm not sure what you mean by "the category should be in the post classes?"

And more basically, are you suggesting I add new CSS code to the inserts field in the theme options? Or modify some css code in some file somewhere? If the former, how do I find out what code to use? I know basic css, like { color:#123456; } but assigning this color to just the title text of a particular category... no clue.

Am I asking too much? I know this forum isn't a basic css instruction forum. But I *do* feel on the verge of a big leap of understanding where then I won't need to ask so many questions.
__________________
Emanuel
http://www.sferios.com
  #4  
Old Feb 5, 2013, 02:49 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
This is where the Firebug extension for Firefox is invaluable. You use it to look at a post in a particular category and will see that the category is something like category-catx or category-caty so you would use .category-catx or .category-caty as your selectors and apply the necessary CSS.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Feb 5, 2013, 03:05 PM
emanuel1969's Avatar
emanuel1969
 
133 posts · Apr 2010
California
Send a message via Skype™ to emanuel1969
Ok I'm going to get Firebug and figure out how to use it. Am I right than in believing that I would apply the css to the css inserts field in the Ata theme options and it would override anything else?
__________________
Emanuel
http://www.sferios.com
  #6  
Old Feb 5, 2013, 03:12 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
CSS has a set of rules for how it is applied. roughly they are
the order they appear - last one overrides an earlier setting
granularity - a more specific selector orverides a less specific selector
inline verses style sheet
use of '!important' - this should trump all
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blog Title: Changing Colors of specific words timmoj Header configuration & styling 1 Mar 6, 2011 03:51 PM
Full Post Text on specific category pages spencer Atahualpa 3 Wordpress theme 1 Jul 7, 2009 02:47 PM
[SOLVED] Header Title - Edit colors of text Craig Mattice Header configuration & styling 2 May 7, 2009 12:55 AM


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


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