Removing Drop Down Boxes/Links

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.
 
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)

Screen%20Shot%202012-04-13%20at%208.53.27%20AM.png


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:
Screen%20Shot%202012-04-13%20at%208.58.10%20AM.png


Removed the highlight (and save):
Screen%20Shot%202012-04-13%20at%209.00.18%20AM.png


And the tab will show like this:
Screen%20Shot%202012-04-13%20at%209.02.37%20AM.png


And when clicked the highlighted tab is still there, as are the child-list links:
Screen%20Shot%202012-04-13%20at%209.02.49%20AM.png
 
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:
.navTabs .forums.Popup .SplitCtrl
{
display: none;
}

and took out the .forums so it works on all tabs. Works a treat.
 
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.
 
Top Bottom