Keyword

How to display social icons below K2 items title in category

  • NUNO ALEXANDRE NOGUEIRA
  • NUNO ALEXANDRE NOGUEIRA's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 9 months ago #144505 by NUNO ALEXANDRE NOGUEIRA
How to display social icons below K2 items title in category was created by NUNO ALEXANDRE NOGUEIRA
Hello,

Is it possible to display a bar with social icons (addthis, sharethis, etc) below the item titles in category listings?

For example on a page like this one?

I managed to enter the code for addthis under the title by changing the category_item.php and it shows nicely, but the thing is it shares the category page and not the item itself..

Any suggestions?

Thanks a lot for your support!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 9 months ago #144515 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to display social icons below K2 items title in category
Each social service has a parameter which strores the url to share. Eg Facebook has data-href. You can find these params in the item.php file.

In the category.php file the link (url) should be <?php echo $this->item->link; ?>

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

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

  • NUNO ALEXANDRE NOGUEIRA
  • NUNO ALEXANDRE NOGUEIRA's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 9 months ago #144555 by NUNO ALEXANDRE NOGUEIRA
Replied by NUNO ALEXANDRE NOGUEIRA on topic How to display social icons below K2 items title in category
Ok, not so direct.

Thanks, I'll have a look!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 9 months ago #144582 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to display social icons below K2 items title in category
You 're welcome.

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