Tabs should be active if Tab ID matches URL hash
-
First off, I noticed an issue that you REQUIRE a tab ID, but don’t set the tab ID in the tab HREF on line 28, you set $tab_id = ” instead of $tab_id = $tab[‘tab_id’].
Secondly, when a user views a page with a hash that matches the tab ID, you would assume that the matching tab should become the active one. It doesn’t. I would love to see this as a feature, I have a form in one of the tabs that refreshes the page and would like the tab to become active when the page refreshes. Currently I use external JS to check if a tab exists with the same hash int he URL and set the lsow-active class on it that way.
If this is already a feature and I’m just missing something please let me know.
- The topic ‘Tabs should be active if Tab ID matches URL hash’ is closed to new replies.