Jump to content
Sign in to follow this  
sotnas

Assign color to the title of a category

Recommended Posts

sotnas    1
sotnas

I have several categories and I want to assign a specific color/background, to the title of the post/article with a specific category. when I write an article, I assign a category to this article, the title of this article automatically gets the color/backgroung-color... of the respective category. Any plugin? Tanks i Love PageLines!!

  • Like 1

Share this post


Link to post
Share on other sites
catrina    103
catrina
There isn't a plugin, but there is a way using CSS. Using Firebug, you can inspect the category page for the CSS elements that you need to add to your Custom CSS settings. For example, the CSS you'd need would look something like this: [code]body.category-id-# h2.selectortitlehere {color: #xxx; background-color: #xxx;}[/code] For further info and instruction, please see this documentation: http://www.pagelines.com/wiki/Custom_CSS

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
sotnas    1
sotnas
Gonna try firebug. Andd reply soon Tanks Catrina

Share this post


Link to post
Share on other sites
sotnas    1
sotnas
Catrina, after install the firebug, i don't see any line with body.category-id-# h2.[b]selectortitlehere[/b] {color: #xxx; background-color: #xxx;} why?

Share this post


Link to post
Share on other sites
catrina    103
catrina
That

is just an example. After the body.category-id-# code, there needs to be a selector for the category title (it can be found by inspecting using Firebug).


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
sotnas    1
sotnas
Catrina, I think I'm doing something wrong. Screen with a firebug for some help. [img]http://sotnasdesign.com/Screen-Shot.png[/img]

Share this post


Link to post
Share on other sites
sotnas    1
sotnas
Tanks Catrina, But I still don't have any solution.

Share this post


Link to post
Share on other sites
sotnas    1
sotnas
The solution! Finally! the css code: [b].category-economia h2.entry-title a { padding-left: 35px; color: rgb(114, 119, 128); }[/b] tanks! I love Pagelines.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×