Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
Insert Html Snippet icon

Insert Html Snippet

v1.4.8
by f1logic · 4.9 (237 reviews)

Add HTML, CSS and javascript code to your pages and posts easily using shortcodes.

20K+ active installs Updated Dec 01, 2026 Tested to 7.1.5
Try Demo Download
Pre-installed Ready in ~10s No card

About Insert Html Snippet

Insert Html Snippet is a plugin that allows you to easily convert HTML, Javascript, and CSS code into shortcodes that can be used in your WordPress posts, pages, and widgets. The plugin also supports snippet shortcodes in widgets and provides a dropdown menu in the editor for easy selection of shortcodes. It is developed and maintained by XYZScripts and they provide support for any issues or questions you may have.

Screenshots

Insert Html Snippet screenshot
Insert Html Snippet screenshot
Insert Html Snippet screenshot

Frequently asked questions

What is Insert Html Snippet?
Insert Html Snippet is a WordPress plugin that allows you to add HTML, CSS, and JavaScript code to your pages and posts easily using shortcodes.
What kind of code can I convert to shortcodes?
You can convert HTML snippets, JavaScript codes, and CSS codes to shortcodes.
Where can I use the snippet shortcodes?
Snippet shortcodes can be used in posts, pages, and widgets. They are available as a dropdown in the standard WordPress content editor and widget settings.
What are the requirements for this plugin?
The plugin requires WordPress 5.0+ and PHP 7+.
Where can I find support or provide feedback?
You can find support and submit feedback at the developer's support desk. There is also a user guide and FAQ available.

Changelog

1.4.8

  • Improved security, input validation, and data sanitization.
  • Enhanced database query handling and sorting security.
  • Improved nonce verification and capability checks.
  • Fixed minor bugs and improved WordPress/PHP compatibility.

1.4.7

  • Added Unicode support for snippet titles
  • Improved and refined the plugin UI for a better user experience.
  • General improvements and stability fixes.

1.4.6

  • PHP 8.3 compatibility improvements.
  • Minor code hardening and stability fixes.

1.4.5

  • Added a setting for manual shortcode usage display and tracking
  • Minor bug fixes

1.4.4

  • Improved snippet list UI and placement clarity
  • Added usage details for snippets used via shortcode
  • Minor bug fixes

1.4.3

  • Added snippet description field
  • Minor bug fixes and compatibility updates
  • CSS & JS files now versioned to fix caching

1.4.2

  • Added a warning note that plugin data will be lost if the plugin is deleted
  • Updated redirects to use wp_safe_redirect() for improved security

1.4.1

  • Added version check to trigger DB updates and clear cache on updates

1.4

  • Added new Snippet Placement Methods: Automatic and Shortcode (Manual) for more flexible snippet placement options.
  • Added Snippet Placement filter on the Manage Snippets page
  • Improved compatibility with the latest WordPress versions
  • Fixed minor bugs and optimized performance.

1.3.8

  • Added “Execute shortcodes in editors” setting for Elementor and other editor compatibility
  • Updated about page with new premium feature details, including automatic placement locations

1.3.7

  • Updated nonce verification for bulk actions to prevent CSRF attacks
  • Compatibility with WordPress 6.6.1

1.3.6

  • Prevented shortcode execution in the admin area
  • Renamed menu from XYZ HTML to Insert HTML Snippet
  • Minor bugs fixed

1.3.5

  • Patch security vulnerability
  • Compatibility with latest version of WordPress

1.3.4

  • Minor bugs fixed
  • Compatibility with latest version of WordPress

1.3.3

  • Minor bugs fixed

1.3.2

  • Database collation issue fixed
  • Minor bugs fixed

1.3.1

  • Notice errors fixed

1.3

  • Snippet selection support in classic editor block of Gutenberg
  • Support for Search Snippet by name
  • Navigation Improvements

1.2.5

  • Support for Bulk Actions(activate,deactivate,delete)

1.2.4

  • Removed deprecated widget initializing function

1.2.3

  • Updated nonces and validations
  • Premium version details and comparison added

1.2.2

  • Unwanted output removed
  • Widget class updated

1.2.1

  • A few bug fixes

1.2

  • Compatibility with wordpress 4.3
  • Added options to sort snippets in admin area by id and title
  • Removed redirection after snippet edit

1.1.1

  • Compatibility with wordpress 3.9

1.1

  • Support for shortcodes in html content
  • Snippet chooser TinyMCE plugin modified
  • A few bug fixes

1.0.1

  • Support for network installation
  • Pagination bug fix

1.0

  • First official launch.

Try other plugins