-
AuthorPosts
-
February 16, 2021 at 3:48 pm #1281371
Hi, I am linking to a tab section in my menu and it works great when you are on other pages that it reloads to, but when you are on the page and click on the links to switch the tabs nothing happens. Made a quick video in the private content section. Let me know how this can be fixed!
February 18, 2021 at 4:32 am #1281929Hey ddandreo,
Thanks for the video. Could you post a link to where we can see the actual problem as well please?
Best regards,
RikardFebruary 18, 2021 at 6:40 pm #1282035Sure! Adding to the private content section.
February 22, 2021 at 12:05 pm #1282763Hi,
Thank you for the info.
That is the default behavior of the tab section, but we could use a script to allow opening of a specific section when a corresponding menu item is clicked.
// https://kriesi.at/support/topic/link-to-a-tab-in-tab-section/#post-1252181
Let us know if it helps.
Best regards,
IsmaelMay 18, 2021 at 2:53 pm #1300999Hi Ismael,
I added that code, but it is not working as the other person had mentioned. I like how with the normal tab element this behavior works perfectly when having the links in the menu, can this not be replicated with the tab sections?
May 21, 2021 at 9:13 am #1301548Hi,
It actually works properly on our end and for a few users who have implemented the same script before. Make sure to update the selector or class name in the following line.
scrollToTab( '.menu-item a', 'click' );
In your case, you have to replace it with..
scrollToTab( '.mega-menu-link', 'click' );
.. since you are using a different plugin to build the menu.
Please toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the code and purge the cache.
Best regards,
IsmaelMay 21, 2021 at 1:34 pm #1301622Hi Ismael,
Thanks for sending that over! I didn’t think of that and I updated the code, but still no luck on my end.
Thanks,
Garrett
May 24, 2021 at 12:24 pm #1301988Hi,
We are getting an error around this line.
tab = $('.av-section-tab-title[href='+ hash +']');
This is the error.
Uncaught Error: Syntax error, unrecognized expression: .av-section-tab-title[href=]
Try to replace the line with:
tab = $('.av-section-tab-title[href="'+ hash +'"]');
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.