XF 1.3 Hiding dropdown menu item

XenStyle

Active member
What class or ID would I use to hide a navigation item under the responsive menu? For example, if I wanted to display:none "Resources" :

Screen Shot 2014-07-23 at 1.36.20 PM.webp
 
There isn't a selector for the <li> in responsive. Is this something that is hidden in default view as well or only for responsive?

There is a selector for everything as long as it is an html-object, even though it may not be a perfect update-proof solution in every case.
 
You can use this to remove the link

Rich (BB code):
#NavigationHiddenMenu li:nth-child(2) { display: none; }

Change the number in red to which link you want removed. 2 = 2nd link.

This was a good suggestion, thank you! Unfortunately this won't work, as the 2nd link would be different depending on the screen width.
 
This was a good suggestion, thank you! Unfortunately this won't work, as the 2nd link would be different depending on the screen width.

Yea, true but there are ways :)

Rich (BB code):
@media (max-width:@maxResponsiveWideWidth)
{       
        #NavigationHiddenMenu li:nth-child(4) { display: none; }
}

@media (max-width:@maxResponsiveMediumWidth)
{
        #NavigationHiddenMenu li:nth-child(3) { display: none; }
}

@media (max-width:@maxResponsiveNarrowWidth)
{
        #NavigationHiddenMenu li:nth-child(2) { display: none; }
}

Or your best bet would be to just edit the template or even the template modification adding the link.
 
That works, but the menu order will be different depending on what page I am on. How could I edit the template for this if they are considered extra tabs? /headache
 
Back
Top Bottom