• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Open Home in new window/tab

borbole

Well-known member
#2
As the title says How to open Home link in new window/tab?
Find this code at the navigation template.

HTML:
<xen:if is="{$showHomeLink}">
            <li class="navTab home PopupClosed"><a href="{$homeLink}" class="navLink">{xen:phrase home}</a></li>
        </xen:if>

And change it with:


HTML:
<xen:if is="{$showHomeLink}">
            <li class="navTab home PopupClosed"><a href="{$homeLink}" target="_blank" class="navLink">{xen:phrase home}</a></li>
        </xen:if>
Then save the changes and you are done.

So what you are doing basically is adding target="_blank" to the link for the home tab. Hope it helps.