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

XF 1.1 How do I create a drop down menu on the navigation bar?

Discussion in 'Styling and Customization Questions' started by =MGN=RedEagle, Feb 4, 2014.

  1. =MGN=RedEagle

    =MGN=RedEagle Well-Known Member

    How do I create a drop down menu on the top navigation bar? I mean with custom links and content.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Edit the navigation template.
  3. =MGN=RedEagle

    =MGN=RedEagle Well-Known Member

    Knew I would get a reply in a blink...

    Yup, im there now. What do I add. I am code-o-phobic. :ROFLMAO:
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Look how the other menus are done and copy the format.
    The difference is you will have to use hard coded URLs and text rather than xen:link and phrases.
  5. HenrikHansen

    HenrikHansen Well-Known Member

  6. =MGN=RedEagle

    =MGN=RedEagle Well-Known Member

    I'm running 1.1.

    Any chance you could help me with it. I am looking at it now and I don't get it. I know no PHP, only every basic HTML.
  7. =MGN=RedEagle

    =MGN=RedEagle Well-Known Member

    Im guessing I should be here:

    <xen:if is="{$tabs.forums}">

    <li class="navTab forums {xen:if $tabs.forums.selected, 'selected', 'Popup PopupControl PopupClosed'}">

    <a href="{$tabs.forums.href}" class="navLink">{$tabs.forums.title}</a>

    <a href="{$tabs.forums.href}" class="SplitCtrl" rel="Menu"></a>

    <div class="{xen:if {$tabs.forums.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}">

    <div class="primaryContent menuHeader">


    <div class="muted">{xen:phrase quick_links}</div>


    <ul class="secondaryContent blockLinksList">

    <xen:hook name="navigation_tabs_forums">

    <xen:if is="{$visitor.user_id}"><li><a href="{xen:link 'forums/-/mark-read', $forum, 'date={$serverTime}'}" class="OverlayTrigger">{xen:phrase mark_forums_read}</a></li></xen:if>

    <xen:if is="{$canSearch}"><li><a href="{xen:link search, '', 'type=post'}">{xen:phrase search_forums}</a></li></xen:if>

    <xen:if is="{$visitor.user_id}"><li><a href="{xen:link 'watched/threads'}">{xen:phrase watched_threads}</a></li></xen:if>

    <li><a href="{xen:link 'find-new/threads'}">{xen:phrase whats_new}</a></li>





  8. =MGN=RedEagle

    =MGN=RedEagle Well-Known Member

    I think I got it with the tips you gave before.

Share This Page