DARKF3D3 Posted September 13, 2014 Share Posted September 13, 2014 I notice that the link in the bock social tpl file has a class="_blank"... It is correct? I know target="_blank" for opening link on a new page/tab, but i never see a class with _blank attribute. Here's the code: <div id="social_block"> <h4 class="title_block">{l s='Follow us' mod='blocksocial'}</h4> <ul> {if $facebook_url != ''}<li class="facebook"><a class="_blank" href="{$facebook_url|escape:html:'UTF-8'}">{l s='Facebook' mod='blocksocial'}</a></li>{/if} {if $twitter_url != ''}<li class="twitter"><a class="_blank" href="{$twitter_url|escape:html:'UTF-8'}">{l s='Twitter' mod='blocksocial'}</a></li>{/if} {if $rss_url != ''}<li class="rss"><a class="_blank" href="{$rss_url|escape:html:'UTF-8'}">{l s='RSS' mod='blocksocial'}</a></li>{/if} {if $youtube_url != ''}<li class="youtube"><a class="_blank" href="{$youtube_url|escape:html:'UTF-8'}">{l s='YouTube' mod='blocksocial'}</a></li>{/if} {if $google_plus_url != ''}<li class="google_plus"><a class="_blank" href="{$google_plus_url|escape:html:'UTF-8'}">{l s='Google+' mod='blocksocial'}</a></li>{/if} {if $pinterest_url != ''}<li class="pinterest"><a class="_blank" href="{$pinterest_url|escape:html:'UTF-8'}">{l s='Pinterest' mod='blocksocial'}</a></li>{/if} {if $vimeo_url != ''}<li class="vimeo"><a href="{$vimeo_url|escape:html:'UTF-8'}">{l s='Vimeo' mod='blocksocial'}</a></li>{/if} </ul> </div> Link to comment Share on other sites More sharing options...
vekia Posted September 13, 2014 Share Posted September 13, 2014 you've got right im going to ask on forge why there is _blank as a class not a target perhaps there is some js script behind that, but i don't think so Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 13, 2014 Author Share Posted September 13, 2014 Yes, I see that because I wanted to open the social in a new tab. So what do you think it's best? I can edit them to target="_blank" or I don't touch them to be sure to not create problems and I also add target="_blank"? Link to comment Share on other sites More sharing options...
vekia Posted September 13, 2014 Share Posted September 13, 2014 i changed each instance of class="_blank" to target="_blank" and everything is fine. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 13, 2014 Author Share Posted September 13, 2014 Ok, I'll do in that way. Thanks for the help vekia! Link to comment Share on other sites More sharing options...
vekia Posted September 15, 2014 Share Posted September 15, 2014 hello both class=blank and target=blank are proper, ps uses tools.js file to open blocks with class=blank to open in new window (with js) Link to comment Share on other sites More sharing options...
Recommended Posts