HTML Block

By Siddharth Nagar

200+ active installationsVersion 1.2.1

Create your HTML code and place it anywhere on your site using a shortcode.

Description

Introduction

HTML block adds custom html blocks to WordPress. You can then add these blocks anywhere on your WordPress site using the shortcode provided.

Installation

  1. Upload the plugin folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Thats it! you can now configure the plugin.

Screenshots

Changelog

1.2.1

  • Fix: Shortcodes inside an HTML Block are now rendered, so blocks built with WPBakery / Visual Composer no longer output raw [vc_row][vc_column] tags.
  • Fix: WPBakery custom CSS and Design Options of an HTML Block are now loaded wherever the block is displayed.
  • Fix: Blocks created with the block editor (Gutenberg) are now rendered properly.
  • Fix: Prevented infinite loops when an HTML Block includes itself.

1.2

  • Security: The [html_block] shortcode now only renders published, non password-protected HTML Blocks. Previously the id attribute could be used to display the content of any post (including private, draft or password-protected posts) by users able to add shortcodes, e.g. Contributors.
  • Security: Sanitized shortcode attributes and escaped all admin output (shortcode column, plugin action links, admin JS variable).
  • Fix: Removed the broken uninstall hook that could cause a fatal error on PHP 8 when deleting the plugin.
  • Fix: Prevented a PHP error when the shortcode referenced a non-existent block ID.
  • Tweak: Added the text domain to all strings and removed the deprecated manual translation loading.
  • Tested OK with WordPress 7.1.

1.1

  • Tested OK with WordPress 6.4.1.

1.0

  • Initial release.