SMF Tricks

SMF General (English) => Support for SMF Tricks Themes & Mods => Topic started by: McDeil on August 09, 2014, 07:39:24 AM

Title: Help with Novo theme
Post by: McDeil on August 09, 2014, 07:39:24 AM
Thank you for providing Novo as a free theme, I really like it.
But I have a question about the links on the top, I configured these using the theme setup, but I can't figure out how to amend the the links so they open in a new browser page (target="_blank").

I've searched a few php pages but can't find where I should change the HTML, I'd be most grateful if someone could point me to the correct file to change.
Thanks
Title: Re: Help with Novo theme
Post by: Diego Andrés on August 10, 2014, 05:18:44 PM
Open index.template.php and search
Code: [Select]
<ul class="links floatleft">
Below you'll see the links. e.g. the link one is:
Code: [Select]
<li><a href="', empty($settings['link_top1_url']) ? '' : '' . $settings['link_top1_url'] . '', '">', empty($settings['link_top1']) ? $txt['link_top1'] : $settings['link_top1'], '</a></li>
Just replace <a with <a target="_blank"
e.g.
Code: [Select]
<li><a target="_blank" href="', empty($settings['link_top1_url']) ? '' : '' . $settings['link_top1_url'] . '', '">', empty($settings['link_top1']) ? $txt['link_top1'] : $settings['link_top1'], '</a></li>
Title: Re: Help with Novo theme
Post by: McDeil on August 11, 2014, 03:38:17 AM
Muchas gracias por su respuesta rapida!