Hide other tab menus in mobile

Is there a way to hide the highlighted tabs in mobile? I tried adding this ->extraAttributes('class' => 'hidden-tabs') to avoid messing up the other tabs but the problem is, I think the hidden-tabs class is being added to the tabs content not the tabs button so I can't select it with the added class and display it none.
No description
3 Replies
AngryTestie
AngryTestieOP2w ago
up
SnaggyDainc
SnaggyDainc2w ago
How about
->visable()
->visable()
with some condition, have you tried it?
toeknee
toeknee6d ago
I assume you just want to hide the menus, so just add a css class like 'custom-hidden-tabs' and then target it and display none of the non-active tab.

Did you find this page helpful?