Hide Tab Header, Linked Content Tab Toggle from Nav Bar #7521
-
Hi there,
For 3, here's the best example I can give:
I understand I'm probably not using this in the most traditional way (as meant for documentation), but it is the best way to get a whole lot of useful extensions into a nice, usable theme. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm guessing, based on my review of things so far, the best way to accomplish this would be to hide the tab selectors with CSS. Then to have the switching take place from a nav toggle button, I'd have to add some Javascript that works with a component in the nav partial files. |
Beta Was this translation helpful? Give feedback.
Hi @anthonylavado,
sorry for the delay in responding, I've read the OP when it was posted, and postponed writing a response since this is a rather custom case which needed some thought, and then this discussion was overshadowed by other notifications 😞
There is the rather new but somewhat supported
nth-child
pseudo selector that supports inner selectorsYou could use it to hide tabs other than the first. If you want more browser support, then a combination of JavaScript that adds some special
.hide-those-tabs
class and CSS itself would be nec…