How to add link to a certain tab

If you need to create a direct link to open certain tab you should follow this easy guide:

  1. add Embed Object to the page where Tabs are placed
  2. paste the code below to Embed Object
  3. 
    <script>
    jQuery(document).ready(function(){
    jQuery(function () {
    var hash = jQuery.trim( window.location.hash );
    if (hash) jQuery('.ui-tabs-nav a[href$="'+hash+'"]').trigger('click');
    });
    }
    );
    </script>
  4. copy link location of tab. You can do that by hovering over a tab and clicking on it with right button of your mouse
  5. if you follow that URL you will open a page where desired tab is active

Leave a Reply

Your email address will not be published. Required fields are marked *