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
    jQuery(function () {
    var hash = jQuery.trim( window.location.hash );
    if (hash) jQuery('.ui-tabs-nav a[href$="'+hash+'"]').trigger('click');
  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

Related Topics

One Reply to “How to add link to a certain tab”

Comments are closed.