Link to specific tab

3 replies · opened Oct 19, 2016

HhenriksarpOct 19, 2016

Hi there,

Thanks for all the great help lately! :)

I would like to ask you, how I can link to a specific tab in the tab module on:

  1. The same page, without the page reloading.
  2. From one page to another.

Best Regards
Henrik

SSemicolon WebSTAFFOct 20, 2016

Hello,

  1. Consider using the following code to Activate the 2nd Tab:
[Go to Tab 2](#)

Make sure that you replace '#tab-1' with your Tabs ID. Also, 1 is index of the 2nd Tab (1st Tab's index is 0 and so on..).

  1. To enable this you will need to use the Custom Javascript Functionality for the tabs. Please check out the Documentation > Shortcodes > Tabs > Initializing Tabs using Custom Javascript Section for the Example Code. Then you can simply add the Tab ID at the end of the URL (of the page with the Tabs) to link the Tab from an External URL.

This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard