Wexlab HTML Blocks for Elementor

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

  1. Upload the plugin files to /wp-content/plugins/wexlab-html-blocks-for-elementor/
  2. Activate the plugin through the Plugins menu in WordPress
  3. Open any page with Elementor
  4. Search for “Custom HTML” in the widget panel
  5. Drag the widget to your desired location
  6. 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

July 22, 2026
I used this plugin on a client’s website to create custom HTML sections inside Elementor, and it worked exactly as expected. The setup was simple, the interface was easy to understand, and it integrated smoothly with Elementor without any conflicts. The plugin helped me add custom HTML blocks quickly while keeping the website lightweight and well-organized. Performance was good, and I did not experience any issues during development or after deployment. Overall, this is a reliable and useful plugin for anyone who needs to add custom HTML content in Elementor. I would definitely use it again for future client projects.
Read all 1 review

Contributors & Developers

“Wexlab HTML Blocks for Elementor” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release
  • Basic HTML widget for Elementor
  • Wrapper style controls (padding, background)
  • Strict wp_kses() HTML sanitization for security