Attachment not found
Hello, how can I do that? So i can put social share links on category list... like other blogs.
See the screenshot please
King Regards
data-href="<?php echo $this->item->link; ?>"data-url="<?php echo $this->item->link; ?>"data-href="<?php echo $this->item->link; ?>"Diogo Alberto wrote:Attachment not found
Hello, how can I do that? So i can put social share links on category list... like other blogs.
See the screenshot please
King Regards
Attachment not found
Krikor Boghossian wrote:You need to edit your template's category_php file.
Open the item.php file and copy all the social code WITHOUT the php stuff, just the HTML and JS.
Paste the code where you want to appear in the category_item.php file. Some styling might be needed in order to align the buttons.
Now you need to manually specify a link for each social button.
For the like button adddata-href="<?php echo $this->item->link; ?>"
Full instructions and options are located here: developers.facebook.com/docs/plugins/like-button/
for twitter addto the buttons's codedata-url="<?php echo $this->item->link; ?>"
All options are located here: twitter.com/about/resources/buttons#tweet
Finally for G+ addto the button's codedata-href="<?php echo $this->item->link; ?>"
developers.google.com/+/web/+1button/ for more options.
$this->item->absoluteURL = JRoute::_(K2HelperRoute::getItemRoute($this->item->id.':'.$this->item->alias, $this->item->catid), true, -1);<?php echo $this->item->absoluteURL; ?><?php echo $this->item->link; ?><a href="https://www.facebook.com/sharer.php?u=<?php echo $item->absoluteURL; ?>" target="_blank"> Facebook</a>Log in or create an account to reply.