Move social bookmarking to the top of an article

Support help forum dedicated to free and commerical templates for Joomla 3 and 2.5 version.
GK User
Sat Mar 15, 2014 2:53 pm
Hi...

I'm searching for the right position to move the following code within de default.php for moving the Social bookmarking to the top of an article:

Code: Select all
   <gavern:social><div id="gkSocialAPI"<?php if (!$params->get('show_publish_date')) : ?> class="nodate"<?php endif; ?>></gavern:social>
      <gavern:social><fb:like href="<?php echo $cur_url; ?>" GK_FB_LIKE_SETTINGS></fb:like></gavern:social>
       <gavern:social><g:plusone GK_GOOGLE_PLUS_SETTINGS callback="<?php echo $cur_url; ?>"></g:plusone></gavern:social>
        <gavern:social><g:plus action="share" GK_GOOGLE_PLUS_SHARE_SETTINGS href="<?php echo $cur_url; ?>"></g:plus></gavern:social>
       <gavern:social><a href="http://twitter.com/share" class="twitter-share-button" data-text="<?php echo $this->item->title; ?>" data-url="<?php $cur_url; ?>"  gk_tweet_btn_settings>Tweet</a></gavern:social>
      <gavern:social><a href="http://pinterest.com/pin/create/button/?url=<?php echo $cur_url; ?>&amp;media=<?php echo $pin_image; ?>&amp;description=<?php echo str_replace(" ", "%20", $this->item->title); ?>" class="pin-it-button" count-layout="GK_PINTEREST_SETTINGS"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="<?php echo JText::_('TPL_GK_LANG_PINIT_TITLE'); ?>" /></a></gavern:social>
    <gavern:social></div></gavern:social>


Don't know where to put this exactly. Probably someone could help me?
User avatar
Fresh Boarder

teitbite
Sat Mar 15, 2014 3:25 pm
Hi

Please just tell me which article system is it ? Is it K2 or joomla regular articles ?
User avatar
Moderator

GK User
Sat Mar 15, 2014 5:13 pm
I use the regular article system...
User avatar
Fresh Boarder

teitbite
Mon Mar 17, 2014 9:16 pm
Hi

Sorry for that, but I have a follow up question. I have not notced that You have asked question in generat "Template Discussion", so to answer I need to know which template are You using and which joomla verison is that.
User avatar
Moderator

GK User
Tue Mar 18, 2014 4:50 pm
Hei... I am using the (M) Social Template ,)
User avatar
Fresh Boarder

teitbite
Tue Mar 18, 2014 10:23 pm
Hi

You forgot to mention which joomla version is it, so I assume it's J3.2. Please edit file /html/com_content/article/default.php and place it in line 204. Right before line which looks like this:

Code: Select all
   <div class="itemBody<?php if (!$params->get('show_publish_date')) : ?> nodate<?php endif; ?>">   


With this buttons will be visible right under header and over article text.
User avatar
Moderator

GK User
Wed Mar 19, 2014 12:16 am
Hei... It's working. Thank you so much.
User avatar
Fresh Boarder

teitbite
Wed Mar 19, 2014 1:00 pm
Hi

No problem. Glad i could help :)
User avatar
Moderator


cron