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

Removing Drop Down Boxes/Links

Discussion in 'XenForo Questions and Support' started by Acelondoner, Apr 13, 2012.

  1. Acelondoner

    Acelondoner Member

    How would I go about removing the dropdowns on the nav tabs? I would just like the secondary links to show (the ones that show up once the nav-tab has been clicked).

    Just point me to the files I need to edit and I should be able to figure out the rest (hopefully):D

    Cheers, Ace.
  2. Floris

    Floris Guest

    From the navigation template, let's take the Help tab; which dropdown is a list inside the div, as seen here: (with the list highlighted)


    Now, there is a class that hides it by default, unless hovered over. This is basically handled with Popup, PopupControl, and PopupSelected in the parent list. So removing those will keep the links from showing, but when the tab is clicked, they are still there, as their default is still to show.

    The css of course changes a bit, you might want to add a custom class there to set the color to show like the other tabs.

    Here's where you find the three classes:

    Removed the highlight (and save):

    And the tab will show like this:

    And when clicked the highlighted tab is still there, as are the child-list links:
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  4. Floris

    Floris Guest

    Attached Files:

  5. Acelondoner

    Acelondoner Member

    I appreciate the detailed reply Floris. I ended up using Jake Bruce's post as I much prefer editing css than template files when neccesary.

    I took this code:
    and took out the .forums so it works on all tabs. Works a treat.
    Floris likes this.
  6. Floris

    Floris Guest

    Yep, i agree. Glad to see you fixed it. Since that works, that would have my preference as well.
    Part of my post's intention was just to show you how I usually find out where to look for what in XenForo if I can't find it via the obvious methods.

Share This Page