XenStyle Active member Jul 23, 2014 #1 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" :
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" :
Steve F Well-known member Jul 23, 2014 #2 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? Upvote 0 Downvote
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?
Lukas W. Well-known member Jul 23, 2014 #3 Steve F said: 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? Click to expand... 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. Upvote 0 Downvote
Steve F said: 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? Click to expand... 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.
Steve F Well-known member Jul 23, 2014 #4 XenStyle said: 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" : View attachment 78595 Click to expand... 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. Upvote 0 Downvote
XenStyle said: 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" : View attachment 78595 Click to expand... 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.
XenStyle Active member Jul 23, 2014 #5 Steve F said: 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. Click to expand... This was a good suggestion, thank you! Unfortunately this won't work, as the 2nd link would be different depending on the screen width. Upvote 0 Downvote
Steve F said: 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. Click to expand... This was a good suggestion, thank you! Unfortunately this won't work, as the 2nd link would be different depending on the screen width.
XenStyle Active member Jul 23, 2014 #6 Steve F said: 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? Click to expand... Yes, I have the navTab hidden on the default view, but it still shows up in the blockLinkList Upvote 0 Downvote
Steve F said: 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? Click to expand... Yes, I have the navTab hidden on the default view, but it still shows up in the blockLinkList
Steve F Well-known member Jul 23, 2014 #7 XenStyle said: This was a good suggestion, thank you! Unfortunately this won't work, as the 2nd link would be different depending on the screen width. Click to expand... 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. Upvote 0 Downvote
XenStyle said: This was a good suggestion, thank you! Unfortunately this won't work, as the 2nd link would be different depending on the screen width. Click to expand... 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.
XenStyle Active member Jul 23, 2014 #8 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 Upvote 0 Downvote
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
Steve F Well-known member Jul 23, 2014 #9 Not sure without really knowing what add-on it is you are trying to disable the tab for. Upvote 0 Downvote