Is it possible to give separate URLs to the tabs "For Everyday" and "For Pharmacy" in Webflow and have them act as their own pages, but still be clickable and changeable using the tabs function?

TL;DR
  • Assign anchor links with IDs to each tab section. 
  • Set up server redirects or URL hash handling for unique URLs.
  • Use JavaScript to switch tabs based on URL hash on page load.
  • Ensure each tab contains unique content to avoid SEO issues.

Creating separate URLs for tab components like For Everyday and For Pharmacy while retaining tab functionality involves customizing the Webflow setup. Please follow these steps:

1. Use Anchor Links for Tabs

  • Link each tab to an anchor that points to the specific tab section.
  • Add IDs to each tab section (e.g., id="for-everyday" and id="for-pharmacy").

2. Create Unique URLs

  • Set up redirects or logic on your server to handle each URL (e.g., yourwebsite.com/for-everyday should redirect to the homepage with the right tab open).
  • This may require custom coding or URL hash handling within Webflow.

3. Implement JavaScript for Tab Switching

  • Use JavaScript to make tabs switch based on URL hash (e.g., #for-everyday automatically opens the "For Everyday" tab).
  • This JavaScript can run on page load, checking window.location.hash and triggering the corresponding tab.

4. Consider SEO Implications

  • Ensure unique content on each tab to prevent SEO penalties for thin content.
  • Evaluate crawlability to decide whether these tabs are best indexed as separate entities.

Summary

While it's technically challenging, you can assign unique URLs to Webflow tabs with custom setups like redirects and JavaScript for hash-based navigation. This keeps the tab functionality while providing the feeling of different pages.

Rate this answer

Other Webflow Questions