XF 1.x Zipped - Adding Navigation Items To Main Menu

DirtRider

Registered
Is there a way that I can add a new top navigation item to my main menu with the associated sub menus in the drop down option.

I have a newsletter and would like this to also appear in my main menu with a few sub options such as subscribe, submit content and so on.

I would like to have this placed just after the Help menu item

upload_2017-4-11_15-48-2.png
 

Russ

Pixel Exit Staff
So you can insert it via basic html, open the template navigation_public_tab_after, this would be a link with a dropdown:

Code:
<xen:if is="@xb_nav_disablesub">
   <li class="navTab customNewsletter Popup PopupControl PopupClosed">
<xen:else />
   <li class="navTab customNewsletter">
</xen:if>
   
       <a href="LINKGOESHERE" class="navLink<xen:if is="@xb_nav_disablearrow"> NoPopupGadget" rel="Menu</xen:if>">Newsletter</a>
       <xen:if is="[email protected]_nav_disablearrow"><a href="LINKGOESHERE" class="SplitCtrl" rel="Menu"></a></xen:if>
       <div class="xbTabPopupArrow">
           <span class="arrow"><span></span></span>
       </div>
       
       <xen:if is="@xb_nav_disablesub">
       <div class="Menu JsOnly tabMenu customNewsletterTabLinks">
       <xen:else />
       <div class="Menu JsOnly tabMenu customNewsletterTabLinks">
       </xen:if>
       <xen:if is="@xb_nav_stretch OR @xb_widen"><div class="xbMaxwidth"></xen:if>
           <div class="primaryContent menuHeader">
               <h3>Newsletter</h3>
               <div class="muted">Newsletter Quick Links</div>
           </div>
           <ul class="secondaryContent blockLinksList">
               <li><a href="CUSTOMSUBNAVLINK1">CUSTOMSUBNAVTEXT1</a></li>
               <li><a href="CUSTOMSUBNAVLINK2">CUSTOMSUBNAVTEXT2</a></li>
               <li><a href="CUSTOMSUBNAVLINK3">CUSTOMSUBNAVTEXT3</a></li>
               <li><a href="CUSTOMSUBNAVLINK4">CUSTOMSUBNAVTEXT4</a></li>
           </ul>
       <xen:if is="@xb_nav_stretch OR @xb_widen"></div></xen:if>
       </div>
   </li>
</xen:if>
Replace the LINKGOESHERE with where you want the tab linking too. Edit the custom sub nav links accordingly. Additionally if you wanted to make it "selectable" like it links to a node and shows active I'd suggest using Nodes As Tabs: https://xenforo.com/community/resources/nodes-as-tabs.9/
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.