Widget Embedding
Embed interactive Gridix floor plans on your website with a single line of code. This guide covers widget generation, configuration, and embedding.Overview
Gridix widgets are embeddable interactive floor plans that you can add to any website. They include:- Interactive Floor Plans: Clickable apartment layouts
- Lead Collection: Built-in inquiry forms
- Multi-language Support: Display in multiple languages
- Responsive Design: Works on all devices
- Customizable: Match your brand colors
Generating Widget Code
Step 1: Access Widget Generator
1
Navigate to Widgets
Go to “Widgets” tab in the admin dashboard.
2
Select Project
Choose which project to embed:
- Single project: Select specific project
- All projects: Show all your projects
3
Configure Language
Set default language for the widget:
- English (en)
- Russian (ru)
- Georgian (ka)
- Arabic (ar)
Step 2: Generate Code
1
Review Configuration
Verify project and language settings.
2
Copy Code
Click “Copy Code” to copy the embed code to clipboard.
3
Code Ready
The code is ready to paste into your website.
Widget Code Structure
Basic Embed Code
Code Components
- Container Div:
<div id="gridix-widget-root"></div>- Where widget appears - Script Source: Loads Gridix widget library
- Initialization: Configures widget with your settings
Embedding on Your Website
HTML Websites
1
Open HTML File
Open your website’s HTML file in a text editor.
2
Find Insertion Point
Locate where you want the widget to appear.
3
Paste Code
Paste the widget code at the desired location.
4
Save and Publish
Save the file and publish to your web server.
WordPress
1
Edit Page/Post
Edit the page or post where you want the widget.
2
Add HTML Block
Add an “HTML” or “Custom HTML” block.
3
Paste Code
Paste the widget code into the HTML block.
4
Publish
Publish or update the page.
CMS Platforms
For other CMS platforms (Drupal, Joomla, etc.):- Find HTML/code insertion option
- Paste widget code
- Save changes
Widget Configuration Options
Project Selection
Language Configuration
Additional Options
Widget Preview
Testing Before Embedding
1
Generate Code
Create widget code in the admin dashboard.
2
Click Preview
Click “Preview” button to see how widget looks.
3
Review Widget
Check:
- Floor plan display
- Interactive features
- Language settings
- Mobile responsiveness
4
Make Adjustments
Return to settings to adjust if needed.
Preview Features
- Full Widget Display: See exact widget appearance
- Interactive Testing: Test all widget features
- Mobile Preview: Check mobile responsiveness
- Language Switching: Test language display
Multi-Language Widgets
Language Support
Widgets support multiple languages:- English (en): Default language
- Russian (ru): Russian interface
- Georgian (ka): Georgian interface
- Arabic (ar): Arabic interface (RTL support)
Language Switching
Configure language in widget code:Widget Customization
Styling Options
While embedded, widgets can be customized with CSS:Container Sizing
Set widget dimensions:Troubleshooting
Common Issues
Widget not displaying
Widget not displaying
- Verify script URL is correct
- Check browser console for errors
- Ensure container div exists
- Verify project ID is correct
Widget appears blank
Widget appears blank
- Check project is published
- Verify project has floor plans
- Check internet connection
- Clear browser cache
Leads not collecting
Leads not collecting
- Verify lead forms are enabled
- Check widget configuration
- Review project settings
- Test form submission
Best Practices
Advanced Usage
Multiple Widgets
Embed multiple widgets on the same page:Dynamic Loading
Load widget dynamically with JavaScript:Next Steps
- Project Management - Create and configure projects for widgets
- Lead Management - Track leads from embedded widgets
- Custom Domains - Use custom domains for widgets