Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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!

    #1281929

    Hey ddandreo,

    Thanks for the video. Could you post a link to where we can see the actual problem as well please?

    Best regards,
    Rikard

    #1282035

    Sure! Adding to the private content section.

    #1282763

    Hi,

    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,
    Ismael

    #1300999

    Hi 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?

    #1301548

    Hi,

    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,
    Ismael

    #1301622

    Hi 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

    #1301988

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.