Hi guys, I’d really appreciate it if you could help me with following.
Basically, I want to create 4 buttons that links to the same tab section but different tab panel opened. So I managed to create an ID for each tab and set URL link /pagename#id-name. but it doesn’t seem to work.
Here’s my share link that you can take a look at it.
GO TO SECTION 2 HOME and click on each link
IF YOU WANT TO SEE HOW ITS SET UP FOR ID GO TO SERVICES AND CLICK ON TAB PANEL
Next we need to give each tab button an ID that makes sense. Note that the link element is selected in the screenshot and has its ID set, not the text element within it: In this case I set the ID for the Product Development tab link to be product-development:
Note the format to use:
Product button: /services?tab=product-development#services-tabs
What is important is that the tab you set here matches the same ID you set for the tab link on the services page. If you don’t do this then the script will not work.
Also you do not need to use a full href like https://vitex.webflow.io/services?tab=product-development#services-tabs. You only need to set the path, so /services?tab=product-development#services-tabs will work fine. This way the link will work on your staging and live site.
So I’ve followed your solutions. 01 Gave a sane ID to the section with tabs. 02 Gave each tab an ID, not the text element within it. 03 Added a code to the Service page body. 04 Used tab link that matches the same ID.
Hey I can see that the section on the service page with the tabs has its ID set to Services-tabs not services-tabs. It is case sensitive, so you need to fix this.
Secondly, I actually put you wrong (sorry!) The correct format for the links on your home page is this: /services?tab=product-development#services-tabs
not this, as I had originally said: /services#services-tabs?tab=product-development
I will update my answer above in case anyone is reading this in future. Try this and let me know how you get on.
I’ve fixed up the tab ID to be ‘services-tabs’ and it worked. So now the link goes to the tab section position.
However, they still goes to the same tab section which is a default active tab not the specific tab opened.
So I’ve tried to set an ID for Tab content not Tab Text but still didn’t work. Please see attached image.
Thanks for your reply. I’ve tried with the tab links ID but still doesn’t seem to work. It keeps goes to the default active tab. Any other reason that you could think of? So sorry to be pain!
We also implemented it on one of our client’s websites: Alpha & Partner Consulting – there we linked these green shapes with another page where the chosen service is pre-selected.
Unfortunately, we found a “bug”. The script does not work on several browsers. Do you have an idea, of how to solve that?
Also, Yeri’s website has the same issue when using e.g. Firefox (98.0.1, 64-Bit) or Safari (15.3, 17612.4.9.1.8).
It would be awesome, if you know how to solve that issue.
Thanks to this post and your solution, I was able to use a similar design for a client’s website, which involved linking specific services from the homepage to their appropriate menu tabs on the services page.
I tested this on Brave and Chrome browsers, and it worked perfectly. However, it appears that in some browsers, when a user clicks on a service link from the homepage, the tab on the services page that appears is always the same, i.e. “Clinical facial treatments”. (screenshot for reference)