Keyword

'Social button' codes

  • chris brice
  • chris brice's Avatar Topic Author
  • Offline
  • New Member
More
10 years 8 months ago #123963 by chris brice
'Social button' codes was created by chris brice
Hi so in K2 Parameters 'Social button' codes how do I add a new code here
I just want pin it
gave the pin it button maker a go but does not show up on site
any help please


I don't want to use a third party extension as default k2 buttons are fine
but I did see this for pin it on here looks a bit old mind you.
getk2.org/extend/extensions/874-pin-it-button
and not sure it sits with default k2 social buttons
using joom 2.7 and latest k2
thanks

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #123964 by Yiota
Replied by Yiota on topic Re: 'Social button' codes
I'm afraid that you have to put it manually in the item.php file.
First you need to create a K2 template override (read here getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates how overrides work).
If you template already uses K2 overrides skip the first part.
Then open item.php, locate the
<?php if($this->item->params->get('itemTwitterButton',1) || $this->item->params->get('itemFacebookButton',1) || $this->item->params->get('itemGooglePlusOneButton',1)): ?>
	<!-- Social sharing -->
.......

and right before the <?php endif; ?> add your pin it code button.

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


Powered by Kunena Forum