Page Builder Integration
OneTap Login works seamlessly with popular page builders. This guide covers integration methods for Elementor, Divi, Gutenberg, and other builders.
Overview
Integration Methods
| Method | Availability | Page Builders |
|---|---|---|
| Automatic hooks | FREE | All (standard pages) |
Shortcode [onetap_button] | PRO | All page builders |
| Custom placement | PRO | Via hooks |
Shortcode Parameters (PRO)
[onetap_button
text="continue_with" // signin_with, signup_with, signin
theme="filled_blue" // outline, filled_black
shape="pill" // rectangular
size="large" // medium, small
width="300" // 200-400
]
Elementor
Standard WooCommerce Pages
On default WooCommerce pages (My Account, Checkout):
- Google sign-in appears automatically
- No configuration needed
- Works with Elementor-designed headers/footers
Custom Login Pages with Elementor
Using Shortcode Widget
- Edit page with Elementor
- Search for "Shortcode" widget
- Drag to desired location
- Enter:
[onetap_button] - Style with Elementor spacing controls

Styling in Elementor
Shortcode Widget Settings:
├── Content
│ └── Shortcode: [onetap_button]
├── Style
│ └── Typography (affects wrapper only)
└── Advanced
├── Margin: 20px 0
├── Padding: 0
└── CSS Classes: custom-google-btn
With Elementor Pro Login Widget
If using Elementor Pro's Login Form widget:
- Add Login Form widget
- Add Shortcode widget below
- Configure shortcode:
[onetap_button text="continue_with" theme="outline"]
Layout Example:
┌────────────────────────────────────────┐
│ [Elementor Login Form Widget] │
│ │
│ Username: [____________] │
│ Password: [____________] │
│ [ Login ] │
│ │
│ ─────── or ─────── │
│ │
│ [Shortcode Widget] │
│ [G Continue with Google] │
└────────────────────────────────────────┘
One Tap with Elementor
One Tap popup works alongside Elementor:
- Appears on configured pages
- Respects Elementor popups (z-index)
- Mobile responsive
Elementor Custom CSS
Add custom CSS for fine-tuning:
/* In Elementor > Custom CSS */
selector .onetap-button-container {
display: flex;
justify-content: center;
margin-top: 20px;
}
selector .g_id_signin {
transform: scale(1.1);
transform-origin: center;
}
Divi
Standard WooCommerce Pages
Same as Elementor - automatic integration on standard pages.
Custom Pages with Divi Builder
Using Code Module
- Open Divi Builder
- Add new row/column
- Add Code module
- Enter shortcode:
<div class="divi-google-signin">
[onetap_button text="continue_with" theme="filled_blue"]
</div> - Style with Divi settings or custom CSS

Divi Module Settings
Code Module Settings:
├── Content
│ └── Code: [onetap_button]
├── Design
│ ├── Spacing
│ │ ├── Margin: 20px auto
│ │ └── Padding: 0
│ └── Sizing
│ └── Max Width: 400px
└── Advanced
└── CSS Class: divi-google-btn
With Divi Login Module
If using Divi's built-in Login Module:
- Add Login Module
- Add Code Module directly below
- Insert shortcode
Visual Structure:
Row
├── Column
│ ├── Login Module
│ └── Code Module (Google button)
Divi Theme Builder
For site-wide login areas:
- Go to Divi > Theme Builder
- Edit body/header template
- Add Code Module where needed
- Insert shortcode
Divi Custom CSS
/* In Theme Options > Custom CSS */
.divi-google-signin {
text-align: center;
padding: 20px 0;
border-top: 1px solid #eee;
margin-top: 20px;
}
.divi-google-signin::before {
content: "or continue with";
display: block;
margin-bottom: 15px;
color: #666;
}
Gutenberg (Block Editor)
Using Shortcode Block
- Add new block
- Search for "Shortcode"
- Enter
[onetap_button] - Publish/Update

Using Custom HTML Block
For more control:
<!-- Custom HTML Block -->
<div class="google-signin-wrapper" style="text-align: center; margin: 2rem 0;">
<p style="color: #666; margin-bottom: 1rem;">Or sign in with</p>
[onetap_button text="signin_with" theme="outline"]
</div>
With Login Block (if using login plugins)
If using a Gutenberg-based login block:
Group Block
├── Login Block (from plugin)
├── Separator Block
└── Shortcode Block: [onetap_button]
Block Patterns
Create reusable pattern:
- Create desired block layout
- Select all blocks
- Click "..." menu > "Create pattern"
- Name: "Google Sign-In Section"
- Reuse across site
Full Site Editing (FSE)
For block themes (Twenty Twenty-Four, etc.):
- Go to Appearance > Editor
- Edit templates (login, my-account)
- Add Shortcode block
- Save template
WPBakery (Visual Composer)
Using Raw HTML Element
- Add Row
- Add Raw HTML element
- Enter:
[onetap_button text="continue_with"] - Save
Using Text Block
Alternatively:
- Add Text Block
- Switch to Text tab (not Visual)
- Enter shortcode
- Save
WPBakery Custom CSS
/* Element Custom CSS */
.vc-google-signin {
text-align: center;
padding: 20px;
}
Beaver Builder
Using HTML Module
- Add HTML Module
- Enter shortcode:
<div class="fl-google-signin">
[onetap_button]
</div> - Style with module settings
Beaver Themer
For site-wide placement:
- Edit theme layout
- Add HTML module to appropriate area
- Insert shortcode
Oxygen Builder
Using Code Block
- Add Code Block
- Switch to PHP/HTML
- Enter:
<div class="oxy-google-signin">
<?php echo do_shortcode('[onetap_button]'); ?>
</div> - Style with Oxygen controls
Oxygen Conditions
Show only for logged-out users:
- Select element
- Add condition: "User is not logged in"
- Shortcode only renders when appropriate
Brizy
Using Shortcode Element
- Add Shortcode element
- Enter
[onetap_button] - Style with Brizy controls
Brizy Popup
For login popups:
- Create popup
- Add login form elements
- Add Shortcode element
- Style accordingly
Breakdance Builder
Using Code Element
- Add Code element
- Enter shortcode
- Style with Breakdance controls
With Breakdance Login Widget
- Add Login widget
- Add Code element below
- Insert shortcode
Universal Tips
Centering the Button
Most builders support these approaches:
Flexbox wrapper:
<div style="display: flex; justify-content: center;">
[onetap_button]
</div>
Text-align wrapper:
<div style="text-align: center;">
[onetap_button]
</div>
Adding Separator
<div class="login-divider">
<span>or</span>
</div>
[onetap_button]
<style>
.login-divider {
display: flex;
align-items: center;
margin: 20px 0;
}
.login-divider::before,
.login-divider::after {
content: "";
flex: 1;
border-bottom: 1px solid #ddd;
}
.login-divider span {
padding: 0 10px;
color: #666;
}
</style>
Responsive Considerations
/* Mobile adjustments */
@media (max-width: 768px) {
.google-signin-wrapper {
padding: 15px;
}
.g_id_signin {
transform: scale(0.9);
transform-origin: center;
}
}
Conditional Display
Show only when logged out:
<?php if (!is_user_logged_in()): ?>
<div class="google-signin-section">
<?php echo do_shortcode('[onetap_button]'); ?>
</div>
<?php endif; ?>
Troubleshooting
Shortcode Shows as Text
Cause: Shortcode not processed
Solutions:
- Ensure using correct element type (Shortcode, not Text)
- Check PRO license is active
- Verify plugin is activated
Button Not Appearing
Cause: JavaScript not loading
Solutions:
- Check console for errors
- Verify Google credentials configured
- Test on standard page first
Layout Broken
Cause: CSS conflicts
Solutions:
- Wrap in container div
- Apply reset CSS
- Use builder's isolation features
Button Wrong Size
Cause: Container constraints
Solutions:
- Set explicit width on container
- Use shortcode size parameter
- Override with custom CSS
Best Practices
Do's
- Test in builder preview
- Use semantic containers
- Add proper spacing
- Test mobile view
- Keep it simple
Don'ts
- Don't over-nest elements
- Don't use conflicting CSS
- Don't skip mobile testing
- Don't forget conditional display
Next Steps
- Shortcode Reference - Full parameter list
- Button Customization - Style options
- Theme Compatibility - Theme-specific notes