I have implemented this solution to get the tabs all closed when loading this page in mobile. Works fine and normal desktop operation is OK.
So if I load that page in mobile I can choose my tab. Say however the user makes a mistake and opens the wrong tab; if I click on the tab heading I just selected again, i.e. instinctively wanting to close it, nothing happens. I have to scroll through the open tab contents to get to the other tabs and select the right one.
Is there a way to click the ‘wrong’ tab again and have it close the contents, thereby getting the list of ‘closed’ tab headings again?
This is only really an issue on mobile because (a) there’s less screen space and (b) where there might be a lot of content in the tab.
Hi zimbo!
Thank you for using Enfold.
The script is set so that it will not trigger on mobile.
Best regards,
Ismael
I think I gathered that, so is it possible to change this behaviour so that a click/press on the tab header in mobile view toggles the content open/close?
Hi,
Have you tried using the One toggle open at a time
option? i checked this Page on my phone and it seems it’s what you want to achieve.
Best regards,
Josue
Hi,
Have you considered using Toggles and Tabs at the same time? you could hide them respectively with CSS:
@media only screen and (min-width: 767px) {
.only-mobile{
display: none
}
.only-desktop{
display: block;
}
}
.only-mobile{
display: block;
}
.only-desktop{
display: none;
}
Best regards,
Josue
Good suggestion though that would mean maintaining the same code block twice. As I said originally, it’s not that much of a big deal (the tab not closing on press/click) so I’ll probably just leave it. You can close this. Thanks.