Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #683273

    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.

    #684408

    Hi zimbo!

    Thank you for using Enfold.

    The script is set so that it will not trigger on mobile.

    Best regards,
    Ismael

    #686866

    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?

    #688810

    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

    #689163

    @Josue

    I’m not using an Accordian but Tabs and have implemented this fix to have all tabs closed on page load when mobile. The client wants the page to use Tabs, preferring the layout.

    #689443

    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

    #691168

    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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Closing an open tab in mobile’ is closed to new replies.