SMF Tricks

SMF Tricks Themes => Free Themes => Topic started by: Diego Andrés on February 02, 2014, 05:52:09 PM

Title: Novo
Post by: Diego Andrés on February 02, 2014, 05:52:09 PM
Link to the theme (https://custom.simplemachines.org/index.php?theme=2728)

(https://smftricks.com/logos/logo.png) (https://smftricks.com/)
Free & Premium Responsive Themes for SMF

(https://smftricks.com/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FhPUv3uu.png&hash=7f1f16c690407e1b7d485bff9f57a62a3e1ebc5c)

(https://img.shields.io/badge/License-MPL%202.0-a05a3f?style=flat-square) (https://img.shields.io/badge/SMF-2.0-996ee1?style=flat-square) (https://img.shields.io/badge/Responsive-No-6e97e1?style=flat-square)

Novo
Developed by Diego Andrés (https://www.simplemachines.org/community/index.php?action=profile;u=254071)

Features


Demo Online (http://demo.smftricks.com/index.php?theme=32)
GitHub (https://github.com/SMFTricks/Novo)
Title: Re: Novo
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: Novo
Post by: Diego Andrés on August 10, 2014, 05:18:44 PM
Open index.template.php and search
<ul class="links floatleft">

Below you'll see the links. e.g. the link one is:
<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.
<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: Novo
Post by: McDeil on August 11, 2014, 03:38:17 AM
Muchas gracias por su respuesta rapida!