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 make custom tab selected when on page

Discussion in 'Styling and Customization Questions' started by Mr Lucky, Jan 31, 2015.

  1. Mr Lucky

    Mr Lucky Well-Known Member

    I have created a custom tab for a page node.

    How do I make it so that the tab is shown as selected when you are on that page?

    I am using this in the nav template

    <li class="navTab PopupClosed"><a href="{xen:link pages/testpage}" class="navLink">Link To Page</a></li>
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It requires PHP code, or an add-on.

    I did a very simple one for when I was using a page node for a specific function.
  3. Optic

    Optic Well-Known Member

    If you don't mind using an add-on, Nodes as Tabs can do this via link forum URL matching.
  4. Mr Lucky

    Mr Lucky Well-Known Member

    many thanks!

Share This Page