Description
Wexlab HTML Blocks for Elementor is an independent widget by WP Expert Lab that lets you add custom HTML code to any page or section built with Elementor. This plugin is not affiliated with or endorsed by Elementor.
Whether you need to embed a third-party widget, add a custom button, or insert any raw HTML — this plugin makes it simple and secure.
Features
- Add custom HTML code inside any Elementor page
- Supports safe HTML tags (div, span, table, img, a, form, iframe, and more)
- All output is sanitized using WordPress wp_kses() for security
- No script tags, no inline JavaScript, no executable code allowed
- Wrapper padding and background color controls
- Lightweight — no extra scripts loaded
- Works with all Elementor themes
Security
This plugin uses a strict wp_kses() allowlist to sanitize all HTML output. The following are explicitly blocked:
- No <script> tags
- No <style> tags
- No inline event handlers (onclick, onload, etc.)
- No PHP execution
- No arbitrary code insertion
Who Is This Plugin For?
- WordPress developers who need to embed safe HTML in Elementor
- Freelancers building client websites
- Business owners who need basic HTML customization
- Anyone who wants to add iframes, tables, or custom markup in Elementor
Requirements
- WordPress 5.0+
- Elementor (free version works) — required, this plugin is not affiliated with Elementor
- PHP 7.2+
Installation
- Upload the plugin files to
/wp-content/plugins/wexlab-html-blocks-for-elementor/ - Activate the plugin through the Plugins menu in WordPress
- Open any page with Elementor
- Search for “Custom HTML” in the widget panel
- Drag the widget to your desired location
- Add your HTML code and click Publish
FAQ
-
Is this plugin made by Elementor?
-
No. Wexlab HTML Blocks for Elementor is an independent third-party plugin created by WP Expert Lab. It is not affiliated with, endorsed by, or connected to Elementor in any way.
-
Does this plugin work with the free version of Elementor?
-
Yes! This plugin works perfectly with the free version of Elementor. No Elementor Pro required.
-
Can I add JavaScript with this plugin?
-
No. This plugin does not allow JavaScript, CSS, or any executable code. Only safe HTML tags are permitted through a strict wp_kses() allowlist.
-
Is this plugin compatible with my theme?
-
Yes, this plugin is compatible with all WordPress themes including Blocksy, Astra, GeneratePress, OceanWP, and more.
-
Will this plugin slow down my website?
-
No. The plugin is extremely lightweight and only loads a minimal CSS file on the frontend.
-
Where can I get support?
-
Please use the WordPress.org support forum for any questions or issues.
Reviews
Contributors & Developers
“Wexlab HTML Blocks for Elementor” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Wexlab HTML Blocks for Elementor” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release
- Basic HTML widget for Elementor
- Wrapper style controls (padding, background)
- Strict wp_kses() HTML sanitization for security
