Keyword

Individual styling of K2 items

  • Ilya Kushliansky
  • Ilya Kushliansky's Avatar Topic Author
  • Offline
  • New Member
More
8 years 8 months ago #146179 by Ilya Kushliansky
Individual styling of K2 items was created by Ilya Kushliansky
Is it possible to individually style K2 items on the list? Is there any id of each item?

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

More
8 years 8 months ago #146181 by Lefteris
Replied by Lefteris on topic Individual styling of K2 items
Hi,

No, there is no specific class or id but you can add it on your own. First read getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates to get familiar with K2 templates.

Then you could add some code to add an id to each item container so you can target it with CSS:
<div id="k2Item<?php echo $item->id; ?>">
...
...
...
</div>

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