![]() |
layout settings/body class on category
Hi, I need to style a website with different colors on different pages. For posts and pages I use the options at layout settings to make bodyclass for the color. It works perfect.
Now I need the same for category-pages. But there I can only choose a layout at the layoutsettings. No option the create a bodyclass for a specific category at the backend of WordPress. Now I can combine a category and a bodyclass in functions.php but that is not really user friendly. Why is there no way to add a bodyclass at layout settings at the categories and is there a way to add this box? |
WordpRess already adds category-specific body classes.
View the html source of the page and look at the classes added to the body tag. |
I don't need category specific body classes. I need to add a custom body class to a category. For example. The site I need this for has webpages with pink, green, orange or blue text. So I added for the pages the bodyclasses pink, green, orange or blue and defined the css for this bodyclasses. I need to do the same for the category pages
|
What I'm saying is to use the category body classes. Add them to your predefined classes.
|
Then everytime a category is added they need me to add the category class to the style.css. That is not what I want. WIth the custom body class of the layoutsettings it's going automatically, without my interverance. Like I do on the pages and the other post types. I want something like that on the categories. So I have the color as the bodyclass.
|
There isn't anything...
But you can just use "category" as a body class. That will apply to all categories even when they make new ones. |
| All times are GMT -5. The time now is 03:39 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.