Different BG-Color for different Categories??
Hello together,
I hope you have great christmas time? I have a very difficult question. It is possible to give each category an other background color? I hope that someone can help me. Best Wishes, Markus |
where do you want to change the color? in the menu, the backgrond of a post of that category, on a category page?
|
I want to change it on the "summary" site of all posts.
So that the visitors see with each background-color in which category the post is. And also I want to make the navigation for the categories in the same colors (as a legend). |
what if a post is in mutiple categories?
and by 'summaries' do you mean the 'excerpts'? ie say you have one full post on the home page and 5 excerpts, you want the excerpts to be colored based on the category? background or just the text color or both? can you point out what you want on your site? detailed example |
I will show it with a little grafic example and I hope it's good to understand.
http://www.imgbox.de/users/public/images/u23265n93.jpg The image shows the frontpage with all actual posts and each post should have another background color. And on the left sidebar the navigation have to be in the same color as the post backgrounds. I hope it is clear enough. |
all you need to do is use css inserts (ATO->Add HMTL/CSS Inserts->CSS Insert) like this
HTML Code:
div.category-red-wine {background: #red;} the last insert will take prescidence, so if you had a post with the category 'books' and 'white wine' then it would be YELLOW. If you had the CSS in this order HTML Code:
div.category-red-wine {background: #red;} |
Thanks. I will try it.
And I can try to modify it like I want e.g. round corners and so on. I will post it here when I'm ready with the changes. |
All times are GMT -6. The time now is 07:41 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.