Keyword

Change image/color background for every k2 category

More
6 years 4 months ago - 6 years 4 months ago #167709 by alex
Hi, is there any way to have a diferent background image/color for each category? Or at less a diferent color background for the item of specific category?


Thankiu
Sorry 4 my english is not my first lenguaje.
Last edit: 6 years 4 months ago by alex.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 4 months ago #167736 by Krikor Boghossian
Replied by Krikor Boghossian on topic Change image/color background for every k2 category
Hello,

You will need to add some classes to the <body> element in order to have an id, so you can differentiate the view.
This way you can add your custom CSS rules.
An example body class (like WP's body_class()) can be found here: github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L38-L57

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum