Community > Answers
60 views

Link Directly to Tab

I am using the Tabs Shortcode on Porto 4 and I would like to link directly to specific tabs using a url. I tried the typical http://webaddress.com#anchorlink format and I can't get it to work. Am I missing something?
 

Odis Clemons Odis Clemons
asked 06/05/2018 20:03

endorsed by
  • Mariette Knap
Add Comment
Mariette Knap
replied 06/14/2018 15:54

Tried that also and it does not work...odd

Odis Clemons
replied 06/14/2018 20:37

I talked to support and the Tabs shortcode doesn't support this.  You have to use javascript or buy their Live Tabs module.  Fortunately, there are scripts online that can parse url parameters.  

Heres the one I used: https://www.sitepoint.com/get-url-parameters-with-javascript/.  

So instead, your url should look something like this: http://website.com/webpage?anchorlink=link1. 

What I did was make a script that checks to see if the anchorlink parameter is set.  If it is, activate the click event for that link.  This highlights the link and also makes the tab visible.  You can make the url parameter anything you want.

Last Activity 06/14/2018 20:37

No answers found

Add an Answer