Link Directly to a Tab

Try it out! https://simple-tab-link.webflow.io/#is-mars

Works with your exiting Tabs UI.
Just add a footer script. (See below)
Uses your tab names.
Automatically scrolls down the page.
Does not effect browser history.
Works with fixed nav bars.
Just change "const offset = 90;"
You can also link to nested tabs. ūüĎá

Try it out! https://simple-tab-link.webflow.io/#is-mars/deimos

Credit - the footer code was provided by STiXzoOR
in the Webflow Forums. emma_luna started the thread.

Closing </body> Tag Preview
Add this code before the closing </body> tag of your page or your entire site.
<!-- ūüíô MEMBERSCRIPT #31 v0.2 ūüíô OPEN WEBFLOW TAB w/ LINK -->
<!-- You can link to tabs like this ūüĎČ www.yoursite.com#tab-name -->
<!-- Or sub tabs like this ūüĎČ www.yoursite.com#tab-name/sub-tab-name -->
<script>
 var Webflow = Webflow || [];
 Webflow.push(() => {
   function changeTab(shouldScroll = false) {
     const hashSegments = window.location.hash.substring(1).split('/');
     const offset = 90; // change this to match your fixed header height if you have one
     let lastTabTarget;      for (const segment of hashSegments) {
       const tabTarget = document.querySelector(`[data-w-tab="${segment}"]`);        if (tabTarget) {
         tabTarget.click();
         lastTabTarget = tabTarget;
       }
     }      if (shouldScroll && lastTabTarget) {
       window.scrollTo({
         top: $(lastTabTarget).offset().top - offset, behavior: 'smooth'
       });
     }
   }
   
   const tabs = document.querySelectorAll('[data-w-tab]');
   
   tabs.forEach(tab => {
     const dataWTabValue = tab.dataset.wTab;
     const parsedDataTab = dataWTabValue.replace(/\s+/g,"-").toLowerCase();
     tab.dataset.wTab = parsedDataTab;
     tab.addEventListener('click', () => {
       history.pushState({}, '', `#${parsedDataTab}`);
     });
   });

  if (window.location.hash) {
     requestAnimationFrame(() => { changeTab(true); });
   }    window.addEventListener('hashchange', () => { changeTab() });
 });
</script>
Double Click
to expand