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

XF 1.4 How to open new posts at new tabs?

Discussion in 'Styling and Customization Questions' started by Silivistras, Oct 18, 2015.

  1. Silivistras

    Silivistras Member

    Could it be possible for members, when they choose "New Posts", every new post to open at a new tab?
  2. borbole

    borbole Well-Known Member

    Hi. Do you mean the new posts at he navbar? If so, at the navigation template find this code:

    <li><a href="{xen:link 'find-new/posts'}" rel="nofollow">{xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}</a></li>
    Change it to this:

    <li><a href="{xen:link 'find-new/posts'}" rel="nofollow" target="_blank">{xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}</a></li>
    And then save the changes.
    Silivistras likes this.

Share This Page