G+ Social Icon Won't Go Away

GK User
Tue Nov 08, 2011 1:53 am
Using FinBus v 2.3. At the bottom-left of all of my articles is the G+ button. It's wrapped in the div#gkSocialAPI. In the template manager, I've turned off all Soc. API's, but this one remains.

Please advise if this is a bug or some other possible problem. I don't want to hide it with CSS, but remove it entirely.

Thanks
User avatar
Senior Boarder

GK User
Tue Nov 08, 2011 9:18 am
This seems like a bug in template as it has google plus one button but has no switch nor settings in template settings.

If you only want to disable google plus one button follow below , beware as this only hides the button and not the block which you will have a empty space below articles. If you want to get rid of the space follow second hack.

Find File: templatesgk_finance_businesslibgk.framework.php
Find Lines: 728 and 729 which is below
Code: Select all
        // G+
       if($this->getParam('google_plus', '1') == 1 && !$is_excluded && !$this->browser->get('mobile')) {

Change it to below
Code: Select all
        // G+
       if($this->getParam('google_plus', '0') == 1 && !$is_excluded && !$this->browser->get('mobile')) {


If you want to get rid of the empty space.

Find File: templatesgk_finance_businesshtmlcom_contentarticledefault.php
Find Lines: 202 to 213 which is below
Code: Select all
   <?php echo $this->item->event->afterDisplayContent; ?>
   
    <gavern:social><div id="gkSocialAPI"></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><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 class="DiggThisButton GK_DIGG_SETTINGS" href="<?php echo $cur_url; ?>"></a></gavern:social>
      <gavern:social><a href="http://www.google.com/buzz/post" class="google-buzz-button" title="<?php echo JText::_('TPL_GK_LANG_GOOGLE_BUZZ_TITLE'); ?>" GK_BUZZ_BTN_SETTINGS data-url="<?php echo $cur_url; ?>"></a></gavern:social>
      <gavern:social><a href="http://www.delicious.com/save" onclick="window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;" class="deliciousBtn" title="<?php echo JText::_('TPL_GK_LANG_DELICIOUS_TITLE'); ?>"></a></gavern:social>
      <gavern:social><a href="http://www.instapaper.com/hello2?url=<?php echo urlencode($cur_url); ?>&title=<?php echo urlencode($this->item->title); ?>" class="instapaperBtn" title="<?php echo JText::_('TPL_GK_LANG_INSTAPAPER_TITLE'); ?>"></a></gavern:social>
   <gavern:social><div class="clr"></div></div></gavern:social>
</div>

Simpy delete gavern:social so it looks like below
Code: Select all
   <?php echo $this->item->event->afterDisplayContent; ?>
</div>
User avatar
Platinum Boarder

GK User
Tue Nov 08, 2011 10:05 am
Thanks
User avatar
Senior Boarder

GK User
Tue Nov 08, 2011 10:10 am
No problem at all..
User avatar
Platinum Boarder


cron