Quick Setup
Login Form
HTML Structure
Create a form in Webflow with these elements:- Email input with ID
login-email - Password input with ID
login-password - Submit button with ID
login-submit - Error message div with ID
login-error
JavaScript
Add to Footer Code:Signup Form
HTML Structure
Create a form with:- Name input with ID
signup-name - Email input with ID
signup-email - Password input with ID
signup-password - Submit button with ID
signup-submit - Error message div with ID
signup-error
JavaScript
Protected Content
Using Custom Attributes
In Webflow, add custom attributes to elements:| Attribute | Value | Description |
|---|---|---|
data-gately-protected | (empty) | Requires login |
data-gately-plan | pro | Requires specific plan |
data-gately-show-if | logged-in | Show only if logged in |
data-gately-hide-if | logged-in | Hide if logged in |
JavaScript for Visibility
Social Login Buttons
Google Login
GitHub Login
User Profile Display
Page Protection
Protect entire pages by adding to the page’s custom code:Form Embedding
Embed Gately forms:Best Practices
Use Webflow Interactions
Use Webflow Interactions
Combine Gately with Webflow interactions for smooth UX.
Style Error Messages
Style Error Messages
Create styled error message components in Webflow.
Loading States
Loading States
Add loading animations while auth operations complete.
Mobile Responsive
Mobile Responsive
Test auth flows on mobile devices.
