Keyword

question about Social buttons

  • molukcelo
  • molukcelo's Avatar Topic Author
  • Offline
  • New Member
More
5 months 1 week ago #174150 by molukcelo
molukcelo created the topic: question about Social buttons
Hello, I want to add some Social buttons and related links in the extra fields. Please tell me how to do it?

Thanks!

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
5 months 1 week ago #174155 by Fotis
Fotis replied the topic: question about Social buttons
It's better to do such a change in the template override for the item view and not as a default value in a textarea type extra field as this would clutter your K2 "items" table in the database. E.g. you could edit a copy of item.php and place your social buttons code after the body text (more on templating here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates ).

Additionally, K2 allows you to use something like AddThis or ShareThis on all K2 items without overriding K2's template files. You can add the related HTML/JS snippet in the "Layout & views" tab of the K2 Settings, under the "Items" section at the bottom (as seen here: jmp.sh/19I75s2 ).

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

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


Powered by Kunena Forum