1. jill
  2. Free Templates / Extensions
  3. Wednesday, 13 June 2012
  4.  Subscribe via email
Hi,
I'm using the Oxygen template with the social media on/off switches. Is there a way to get the links to open in a new browser window instead of replacing my website in the parent window?
Thanks!
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Jill

In your templates header.php (../templates/j51_oxygen/php/layouts/header.php) replace the following..

        <div id="socialmedia">
<ul id="navigation">

<?php if($this->params->get('nav_rssfeed_sw') == '1') : ?>
<li class="nav_rssfeed"><a href="/<?php echo $this->params->get('nav_rssfeed'); ?>" title="RSS Feed"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_twitter_sw') == '1') : ?>
<li class="nav_twitter"><a href="/<?php echo $this->params->get('nav_twitter'); ?>" title="Twitter"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_facebook_sw') == '1') : ?>
<li class="nav_facebook"><a href="/<?php echo $this->params->get('nav_facebook'); ?>" title="Facebook"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_myspace_sw') == '1') : ?>
<li class="nav_myspace"><a href="/<?php echo $this->params->get('nav_myspace'); ?>" title="MySpace"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_blogger_sw') == '1') : ?>
<li class="nav_blogger"><a href="/<?php echo $this->params->get('nav_blogger'); ?>" title="Blogger"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_stumble_sw') == '1') : ?>
<li class="nav_stumble"><a href="/<?php echo $this->params->get('nav_stumble'); ?>" title="StumbleUpon"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_google_sw') == '1') : ?>
<li class="nav_google"><a href="/<?php echo $this->params->get('nav_google'); ?>" title="Google"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_flickr_sw') == '1') : ?>
<li class="nav_flickr"><a href="/<?php echo $this->params->get('nav_flickr'); ?>" title="Flickr"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_linkedin_sw') == '1') : ?>
<li class="nav_linkedin"><a href="/<?php echo $this->params->get('nav_linkedin'); ?>" title="LinkedIn"></a></li>
<?php endif; ?>
</ul>
</div>


With..

        <div id="socialmedia">
<ul id="navigation">

<?php if($this->params->get('nav_rssfeed_sw') == '1') : ?>
<li class="nav_rssfeed"><a href="/<?php echo $this->params->get('nav_rssfeed'); ?>" title="RSS Feed" target="_blank"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_twitter_sw') == '1') : ?>
<li class="nav_twitter"><a href="/<?php echo $this->params->get('nav_twitter'); ?>" title="Twitter" target="_blank"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_facebook_sw') == '1') : ?>
<li class="nav_facebook"><a href="/<?php echo $this->params->get('nav_facebook'); ?>" title="Facebook" target="_blank"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_myspace_sw') == '1') : ?>
<li class="nav_myspace"><a href="/<?php echo $this->params->get('nav_myspace'); ?>" title="MySpace" target="_blank"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_blogger_sw') == '1') : ?>
<li class="nav_blogger"><a href="/<?php echo $this->params->get('nav_blogger'); ?>" title="Blogger" target="_blank"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_stumble_sw') == '1') : ?>
<li class="nav_stumble"><a href="/<?php echo $this->params->get('nav_stumble'); ?>" title="StumbleUpon" target="_blank"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_google_sw') == '1') : ?>
<li class="nav_google"><a href="/<?php echo $this->params->get('nav_google'); ?>" title="Google" target="_blank"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_flickr_sw') == '1') : ?>
<li class="nav_flickr"><a href="/<?php echo $this->params->get('nav_flickr'); ?>" title="Flickr" target="_blank"></a></li>
<?php endif; ?>
<?php if($this->params->get('nav_linkedin_sw') == '1') : ?>
<li class="nav_linkedin"><a href="/<?php echo $this->params->get('nav_linkedin'); ?>" title="LinkedIn" target="_blank"></a></li>
<?php endif; ?>
</ul>
</div>

CiarĂ¡n
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Please find attached an update for this module including the option to set the target for each icon.

Ciaran
Attachments (1)
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Please find attached an update for this module including the option to set the target for each icon.

Ciaran


Wow, that's really great! Installed the updated module, all good.
Tested the new settings, works like a charm. Thanks a lot!
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi, I'm facing the same issue and will apply your suggestion above to my template Hayley.

Will you provide an additional option in future templates, so we can choose what to do with links?

Thanks, Burt

For template Hayley the fix can be done here:
modules/mod_j51inlineicons/tmpl/default.php
Attachments (1)
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Note if you get any errors after updating the module, simply navigate to the module settings and click Save.

Ciaran
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok