Change background color of single-posts in certain category

Posted in: Newspaper
Post count: 209

Hello,

is it possible to the change the background color of all the single posts in a certain categorie?

  • This topic was modified 8 years by be2name.
Post count: 20688

Hi,

The theme has a primary category setting, this is explained here
https://forum.tagdiv.com/primary-category/
So for example if you were to set a background color for a category, in the theme panel, then all the posts that have it as primary will inherit that background. This would be an easy way to control multiple posts at once.

Thanks

Post count: 209

Hello Simion,
I see, that my definition of background was a bit unclear. I did not mean the back-background (the area left and right from the content). I really mean the background of the post itself. I created a TDB template for a category with the background under the post-text a bit more yellow than the main site color, which is white. And I want all posts in that category to have the yellow background, but this background still is white, no matter, if the main category is set correctly.

Post count: 20688

You can set a background for the post content with the composer. Set it for the row or the post content element and check the results, they would be different
https://www.screencast.com/t/p0l5qlgNWAW
Only the posts that have this template set will display the background, regardless of category. The templates can only be set in general or per post.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.