Hi,
I use AddThis, but I can not find how to enter the code in the template.
I've tried in the parameters K2 -> Social but nothing is displayed.
Can you help me?
Best Regards.
Gioacchino
teitbite wrote:Hi
It depends where You want this buttons to show. Can You please tell me ? If it's for articles only than add it into: /html/com_k2/templates/default/item.php
<?php if(!empty($this->item->fulltext)): ?>
<?php if($params->get('itemIntroText')): ?>
<div class="itemIntroText"> <?php echo $this->item->introtext; ?> </div>
<?php endif; ?>
<?php endif; ?>
<?php if($params->get('itemFullText')): ?>
<div class="itemFullText"> <?php echo (!empty($this->item->fulltext)) ? $this->item->fulltext : $this->item->introtext; ?> </div>
<?php endif; ?>
teitbite wrote:Hi
In such case use file: /html/com_k2/templates/default/item.php and add it right under the code:
- Code: Select all
<?php if(!empty($this->item->fulltext)): ?>
<?php if($params->get('itemIntroText')): ?>
<div class="itemIntroText"> <?php echo $this->item->introtext; ?> </div>
<?php endif; ?>
<?php endif; ?>
<?php if($params->get('itemFullText')): ?>
<div class="itemFullText"> <?php echo (!empty($this->item->fulltext)) ? $this->item->fulltext : $this->item->introtext; ?> </div>
<?php endif; ?>
for homepage, just select it to display a K2 article, so asme file will handle it than
drdrew wrote:Hello,
This was a problem for me too until I saw that addthis.com as a free Joomla plugin that makes it easy (be sure to clear the browser cashe though)
http://support.addthis.com/customer/portal/articles/381232-addthis-for-joomla-
Hopes this helps
Kind regards
Drew
teitbite wrote:Hi
Try add it onto the code as I've explained than. This way You will have a full control of where this will be displayed. A layout You still have to set in AddThis page as I'm not mistaken.