1. 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

Discussion in 'Styling and Customization Questions' started by BassMan, Aug 9, 2013.

  1. BassMan

    BassMan Well-Known Member

    As the title says How to open Home link in new window/tab?
     
  2. borbole

    borbole Well-Known Member

    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.
     
    BassMan likes this.

Share This Page