Keyword

Photo/Video/File icon after K2 article title

  • Raivis Kapteinis-Miezeris
  • Raivis Kapteinis-Miezeris's Avatar Topic Author
  • Offline
  • New Member
More
4 months 1 week ago #172723 by Raivis Kapteinis-Miezeris
Raivis Kapteinis-Miezeris created the topic: Photo/Video/File icon after K2 article title
Hello!
Is there any solution how to add icon after K2 article title?

See attachment..
Attachments:

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
4 months 1 week ago - 4 months 1 week ago #172731 by Fotis
Fotis replied the topic: Photo/Video/File icon after K2 article title
This requires basic knowledge of CSS. If you're OK with that, simply edit the 2 template overrides in K2 (item.php and category_item.php) after you copy them inside your template structure. When you edit them, just locate the relevant code and move it as you like.

If you want to print an icon if a video exists, just use this PHP code:
<?php if(!empty($this->item->video)): ?>
    <i>Some icon here</i>
<?php endif; ?>

Learn how to copy the source K2 template overrides to your Joomla template here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member
Last edit: 4 months 1 week ago by Fotis.

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


Powered by Kunena Forum