Social icons links should be "_blank"

Gamebox for Joomla 1.5 support forum by GavickPro
GK User
Tue Mar 15, 2011 1:00 pm
right now the social icons open in the same window as the page.
i would like to have a new tab for opening them, so the page stays.

where can i add in the "_blank" tag?

thx for your help.
User avatar
Fresh Boarder

GK User
Wed Mar 16, 2011 8:39 am
Please look at file botsl.php in templatelayoutblocks directory lines 10-15
Code: Select all
<div id="social-icons">
      <a href="<?php echo $this->_tpl->params->get('social_twitter','#'); ?>" class="socialicon" id="social_twitter">Twitter</a>
      <a href="<?php echo $this->_tpl->params->get('social_facebook','#'); ?>" class="socialicon" id="social_facebook">Facebook</a>
      <a href="<?php echo $this->_tpl->params->get('social_email','#'); ?>" class="socialicon" id="social_email">E-mail</a>
      <a href="<?php echo $this->_tpl->params->get('social_rss','#'); ?>" class="socialicon" id="social_rss">RSS</a>
   </div>
User avatar
Platinum Boarder

GK User
Wed Mar 16, 2011 12:09 pm
that was way easy. thx for your quick answer again. this place rocks!!!
User avatar
Fresh Boarder

GK User
Wed Feb 26, 2014 9:24 pm
Hi,

I can't find that file in the 2.5 version of Joomla. Could you help me too with this problem?

Thanks,
Mark
User avatar
Fresh Boarder

GK User
Fri Feb 28, 2014 10:42 am
Please go template/layouts/block/bottom.php and there you should see this code :

Code: Select all
   <?php if($this->getParam('social_icons',1)) : ?>
   <div id="social-icons">
      <a href="<?php echo $this->getParam('social_twitter','#'); ?>" class="socialicon" id="social_twitter">Twitter</a>
      <a href="<?php echo $this->getParam('social_facebook','#'); ?>" class="socialicon" id="social_facebook">Facebook</a>
      <a href="<?php echo $this->getParam('social_email','#'); ?>" class="socialicon" id="social_email">E-mail</a>
      <a href="<?php echo $this->getParam('social_rss','#'); ?>" class="socialicon" id="social_rss">RSS</a>
   </div>
   <?php endif; ?>   
User avatar
Platinum Boarder

GK User
Fri Feb 28, 2014 1:26 pm
Hi,

There is no such file. The files present are cookielaw, footer, head, index, logo and social (.php). I checked several of them but can't find it.

When I try to adjust the module 'socail icons' and add the URL in stead of the # then it works. But when I add the HTML code for opening in a blank window, it doesn't work.

Your reply is appreciated!

Mark
User avatar
Fresh Boarder

GK User
Mon Mar 03, 2014 10:07 am
Please tell me which template you use? Could you make a screenshot of your template instalation directory files? So root/templates/gk_templatename/
User avatar
Platinum Boarder

GK User
Tue Mar 18, 2014 3:20 pm
I use the theme Fest (gk_fest).

stadionmuur-ftp.jpg
User avatar
Fresh Boarder

GK User
Thu Mar 20, 2014 11:51 am
At that is the problem because you have created topic in gamebox magazine for Joomla! 1.5 area. So finally what template do you use and which Joomla! version?
User avatar
Platinum Boarder

GK User
Thu Mar 20, 2014 3:13 pm
Hmmm not very clever.. I am using template Fest for Joomla 2.5
User avatar
Fresh Boarder

GK User
Mon Mar 24, 2014 11:36 am
Any update about this please?
User avatar
Fresh Boarder

GK User
Wed Mar 26, 2014 4:57 pm
Please open this module → screenshot

and add target="_blank" directly to every link element in module source.
User avatar
Platinum Boarder


cron