Webflow Hacks

Hidden Default Tab

Overview
Webflow Element Hacks
Hidden Default Tab
101
Webflow Utility Hacks
Auto-Login on Password-Protected Page
120
Webflow Editor Hacks
Enhancing Webflow's Editor
901
Shopify
Shopify Buy Button
901
Webflow Designer Hacks
Download All Designer Assets
30:00
921
Replace a Webflow Asset
30:00
922
Component Hacks
Style Component Instances
941
No items found.
Published
July 12, 2023
Updated
in lightbox

Webflow's Tabs component supports a "No tab" default state, however once a tab is clicked, you cannot return to that "No tab" state- even using custom code.

However, you can achieve this same effect with a "hidden" tab, which is set as the default, and which can be re-selected later using custom code.

How it works

  • You create a hidden tab, optionally with content
  • You can set it as the default, or any other
  • A "close" button or trigger executes javascript that "clicks" the hidden tab

Code

The code is very simply, here is a jQuery version which you would place in the before /body section.

Resources

  • Demo - https://webflow-tabs-hacks.webflow.io/
  • Cloneable - https://webflow.com/made-in-webflow/website/webflow-tabs-hacks

Videos
No items found.
Table of Contents
Comments
Did we just make your life better?
Passion drives our long hours and late nights supporting the Webflow community. Click the button to show your love.