Keyword

Adding a Data Attribute to a Category List item

  • John Sellers
  • John Sellers's Avatar Topic Author
  • Offline
  • New Member
More
9 years 4 months ago #134524 by John Sellers
Looking for a solution to add a data attribute to a K2 Category item list.

want to look like:

<div class="itemContainer itemContainerLast" data-group="[1,2,3]" >

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 4 months ago #134541 by Krikor Boghossian
Replied by Krikor Boghossian on topic Adding a Data Attribute to a Category List item
You need to add these classes directly to your template, this post will help you locate the files you need to change .
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

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