Support » Plugin: Essential Addons for Elementor » Is there a way to automatically select different tabs via the URL?

  • Resolved authentictech

    (@authentictech)


    For Advanced Tabs, is there a way to open a non-default tab via a particular link such as http://example.com/tabpage#tab2

    If not, can this feature please be added? I think it would be useful for many people. i.e. to be able to add a custom ID attribute to tabs and then be able to open them on page load by referring to the ID in the link.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Abid Hasan

    (@abidhasan112)

    Hi @authentictech ,
    Currently this feature is not available. But you can write a custom JS and achieve this:

    <script>
    jQuery( document ).ready(function() {
    var url = 'http://example.com/tabpage#tab2',
        hash = url.split('#')[1];
    
    if (hash) {
        setTimeout(function() {
          jQuery(".eael-tabs-nav li:nth-child(2)").trigger("click");
        },1000);
    }
    });
    </script>

    Hope this helps for you! Cheers!

    Thread Starter authentictech

    (@authentictech)

    Hi @abidhasan112

    I really appreciate you taking the time to show me how this can be done.

    Thanks. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there a way to automatically select different tabs via the URL?’ is closed to new replies.