SVG Block

Àpèjúwe

This SVG block allows you to display SVG images as inline HTML markup. You can either choose an icon from the icon library with more than 3000 icons or you can upload or input your custom SVG images directly in the blockÌtumọ̀ Yorùbá: ’s setting.
It also allows you to upload SVG images to the WordPress media library, and load them into the icon library. Only SVG files that have XML declaration at the top like <?xml version="1.0" encoding="utf-8"?> can be uploaded to the WordPress media library.

Key Features

  • Accessibility ready with ‘img’ role, automatically generates title and description from settings.
  • Automatically sanitize SVG markup to make it safe and lightweight.
  • Include almost all settings to customize the SVG image.
  • Include a collection of common non-rectangular dividers.
  • An icon library included icons from “Bootstrap Icons”, “Ionicons”, “Dashicons” and new “WordPress Icons”.
  • Allow uploading SVG images to the WordPress media library
  • Automatically load SVG images from the media library into the icon library

Video tutorials

How to create an icon with custom styles using the icon library:

How to create a non-rectangular background section:

How to create icon buttons:

Please take a look at these custom block patterns that use this block to see how it can be applied to real-world sites.

If this plugin is useful for you, please do a quick review and rate it on WordPress.org to help us spread the word. I would very much appreciate it.

Please check out my other plugins if youÌtumọ̀ Yorùbá: ’re interested:

  • Content Blocks Builder Ìtumọ̀ Yorùbá: – This plugin turns the Block Editor into a powerful page builder by allowing you to create blocks, variations, and patterns directly in the Block Editor without needing a code editor.
  • Meta Field Block Ìtumọ̀ Yorùbá: – A block to display custom fields as blocks on the front end. It supports custom fields for posts, terms, users, and setting fields. It can also be used in the Query Loop block.
  • Icon separator Ìtumọ̀ Yorùbá: – A tiny block just like the core/separator block but with the ability to add an icon.
  • Breadcrumb Block Ìtumọ̀ Yorùbá: – A simple breadcrumb trail block that supports JSON-LD structured data and is compatible with WooCommerce.
  • Block Enhancements Ìtumọ̀ Yorùbá: – Adds practical features to blocks like icons, box shadows, transforms, etc.
  • Counting Number Block Ìtumọ̀ Yorùbá: – A block to display numbers with a counting effect
  • Better YouTube Embed Block Ìtumọ̀ Yorùbá: – A block to solve the performance issue with embedded YouTube videos. It can also embed multiple videos and playlists.

The plugin is developed using @wordpress/create-block.

Àwọn àwòrán ìbòjú

Àwọn ìdí

Plugin yìí pèsè 1 ìdí.

  • SVG Block Display an SVG image as a block, which can be used for displaying images, icons, dividers, buttons

Ìgbéwọlẹ̀

  1. Upload the plugin files to the /wp-content/plugins directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

FAQ

What problem does this plugin solve?

It helps to input inline SVG images as blocks easily and safely. You can use SVGs from the icon library or upload your own. It also supports uploading SVG images to the media library and displaying them with this block.

When should we use this plugin?

  • When you need to quickly input some icons. It bundles with more than 3000 icons from some popular icons library such as “WordPress”, “Dashicons”, “Ionicons”, and “Bootstrap icons”.
  • Or you need to use an SVG image as a divider, or separator. It also bundles with some common non-rectangular dividers like tilts, curves, triangles…
  • You can also use it as an image block but for SVG format only like images from undraw.co.
  • You can also use it as a button with an icon, and it can be nested inside the Query Loop with the ‘Link to post’ enabled.

Why needs this plugin?

ItÌtumọ̀ Yorùbá: ’s super easy to use. ItÌtumọ̀ Yorùbá: ’s accessibility-ready. It comes with lots of additional features like responsive width and height, responsive spacing (padding and margin), responsive justify alignment, flip, revert, responsive border, border-radius, box-shadow builder…

Who needs this plugin?

Anyone can use this plugin.

Àwọn àgbéyẹ̀wò

Èrèlé 18, 2026 1 ìdáhùn
Intégration parfaite du SVG : on peut modifier la couleur de ses icones, et on les retrouve dans la librairie média standard. Ce devrait être intégré dans Wordpress. Tous les plugins de cet auteur sont excellents.
Ògún 15, 2024 1 ìdáhùn
I have tested several SVG plugins, and this one seems to be the best of them all. Animations are even displayed directly in the block editor. It offers many customization options and optimal scaling. Top-notch!
Òkúdù 19, 2024 1 ìdáhùn
This plugin adds some missing functionality that Gutenberg should have by default. ItÌtumọ̀ Yorùbá: ’s great. The developer is also very receptive and quick in adding features.
Òkúdù 15, 2024 1 ìdáhùn
Hello, This extension is really very complete.IÌtumọ̀ Yorùbá: ’ve posted the full French translation on translate.wordpress.org/locale/fr/default/wp-plugins/svg-block/ Give me feedback if you wish.
Ka gbogbo àwọn àgbéyẹ̀wò 14

Àwọn Olùkópa & Olùgbéejáde

“SVG Block” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

A ti túmọ̀ “SVG Block” sí àwọn èdè agbègbè 4. Ọpẹ́lọpẹ́ fún àwọn atúmọ̀ èdè fún àwọn ìkópa wọn.

Túmọ̀ “SVG Block” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

1.2.4

Release Date Ìtumọ̀ Yorùbá: – 07 May 2026

  • Improved Ìtumọ̀ Yorùbá: – Updated enshrined/svg-sanitize to the latest version
  • Improved Ìtumọ̀ Yorùbá: – Updated inspector control style

1.2.3

Release Date Ìtumọ̀ Yorùbá: – 19 November 2025

  • Fixed Ìtumọ̀ Yorùbá: – Missing default breakpoint values that caused responsive height styles to stop working.

1.2.2

Release Date Ìtumọ̀ Yorùbá: – 15 November 2025

  • Fixed Ìtumọ̀ Yorùbá: – Responsive height style was not working
  • Added Ìtumọ̀ Yorùbá: – A new hook apply_filters( 'boldblocks_svg_block_limit_svgs', 500 ) allows users to load more SVGs icons from the media library

1.2.1

Release Date Ìtumọ̀ Yorùbá: – 27 August 2025

  • Fixed Ìtumọ̀ Yorùbá: – Enqueued dynamic styles for classic themes

1.2.0

Release Date Ìtumọ̀ Yorùbá: – 18 August 2025

  • Improved – Inline styles are now rendered as dynamic styles for cleaner markup
  • Improved – Revamped the inspector settings
  • Improved – Added support for negative margins

1.1.25

Release Date Ìtumọ̀ Yorùbá: – 14 November 2024

  • Added Ìtumọ̀ Yorùbá: – Add typography support feature when using the block as a button
  • Security Ìtumọ̀ Yorùbá: – Sanitize the SVG files upload via REST API
  • Updated Ìtumọ̀ Yorùbá: – Required PHP 7.1

1.1.24

Release Date Ìtumọ̀ Yorùbá: – 24 October 2024

  • Updated Ìtumọ̀ Yorùbá: – SDK to implement minor UI changes and remove deprecated code
  • Improved Ìtumọ̀ Yorùbá: – Replaced classnames with clsx
  • Updated Ìtumọ̀ Yorùbá: – Tested compatibility with WP 6.7 and set minimum requirement to WP 6.5

1.1.23

Release Date Ìtumọ̀ Yorùbá: – 03 July 2024

  • Improved Ìtumọ̀ Yorùbá: – Refactor code to make the placeholder look good when installing the block from the inserter
  • Improved Ìtumọ̀ Yorùbá: – Adjust vertical spacing style for some inspector controls
  • Added Ìtumọ̀ Yorùbá: – Support clientNavigation interactivity

1.1.22

Release Date Ìtumọ̀ Yorùbá: – 30 May 2024

  • Updated Ìtumọ̀ Yorùbá: – Update the unique ID for the SVG on the server
  • Refactor Ìtumọ̀ Yorùbá: – Vertical spacing
  • Improved Ìtumọ̀ Yorùbá: – Adjust the styling for the replacement SVG dropdown in the contentOnly mode

1.1.21

Release Date Ìtumọ̀ Yorùbá: – 22 May 2024

  • Improved Ìtumọ̀ Yorùbá: – The SVG URL input UI component
  • Updated Ìtumọ̀ Yorùbá: – Put the shadow panel inside the Border panel
  • Improved Ìtumọ̀ Yorùbá: – Allow inputting alpha value for colors
  • Fixed Ìtumọ̀ Yorùbá: – Fix some small styling issues

1.1.20

Release Date Ìtumọ̀ Yorùbá: – 28 April 2024

  • Improved Ìtumọ̀ Yorùbá: – Uploading SVGs: sanitize and allow only the administrator can upload SVG

1.1.19

Release Date Ìtumọ̀ Yorùbá: – 19 April 2024

  • Added Ìtumọ̀ Yorùbá: – Allow inputting SVG data, URL, button text on the content only locking
  • Updated Ìtumọ̀ Yorùbá: – Refactor code

1.1.18

Release Date Ìtumọ̀ Yorùbá: – 01 April 2024

  • Added Ìtumọ̀ Yorùbá: – Allow the ability to exclude the icon library from the icon popup
  • Updated Ìtumọ̀ Yorùbá: – Update SDK
  • Updated Ìtumọ̀ Yorùbá: – Icon Library

1.1.17

Release Date Ìtumọ̀ Yorùbá: – 31 October 2023

  • Added Ìtumọ̀ Yorùbá: – Allow uploading SVG images to the WordPress media library and load those images into its icon library
  • Updated Ìtumọ̀ Yorùbá: – Update icons from the latest version of third-party providers
  • Updated Ìtumọ̀ Yorùbá: – Update SDK

1.1.16

Release Date Ìtumọ̀ Yorùbá: – 22 September 2023

  • Added Ìtumọ̀ Yorùbá: – New setting named linkToPost. The block now can be used in a Query Loop and acts like a link/button with an icon that links to the post
  • Updated Ìtumọ̀ Yorùbá: – Update ‘Requires at least’ to 6.3 for the new HTML API, and new default size controls
  • Fixed Ìtumọ̀ Yorùbá: – Change border from BorderBoxControl to BorderControl

1.1.15

Release Date Ìtumọ̀ Yorùbá: – 08 September 2023

  • FIX Ìtumọ̀ Yorùbá: – Generate empty variables for margin

1.1.14

Release Date Ìtumọ̀ Yorùbá: – 03 September 2023

  • DEV Ìtumọ̀ Yorùbá: – Use the default control for border, spacing settings
  • DEV Ìtumọ̀ Yorùbá: – Disable toggle off for width, icon width, gap between icon and text

1.1.13

Release Date Ìtumọ̀ Yorùbá: – 09 August 2023

  • DEV Ìtumọ̀ Yorùbá: – Update new style for the icon library popup in WP 6.3
  • DEV Ìtumọ̀ Yorùbá: – Refactor code

1.1.12

Release Date Ìtumọ̀ Yorùbá: – 28 June 2023

  • DEV Ìtumọ̀ Yorùbá: – Use ToolsPanel for inspector controls
  • DEV Ìtumọ̀ Yorùbá: – Improve performance

1.1.11

Release Date Ìtumọ̀ Yorùbá: – 11 March 2023

  • DEV Ìtumọ̀ Yorùbá: – Update icon library
  • DEV Ìtumọ̀ Yorùbá: – Add more clear help texts for the title and the description
  • DEV Ìtumọ̀ Yorùbá: – Refactor for WP 6.2

1.1.10

Release Date Ìtumọ̀ Yorùbá: – 09 February 2023

  • DEV Ìtumọ̀ Yorùbá: – Add better support for the ‘Use as button’ feature

1.1.9

Release Date Ìtumọ̀ Yorùbá: – 03 February 2023

  • DEV Ìtumọ̀ Yorùbá: – Add SVGO GUI tool to the help text
  • DEV Ìtumọ̀ Yorùbá: – Update SDK

1.1.8

Release Date Ìtumọ̀ Yorùbá: – 27 October 2022

  • DEV Ìtumọ̀ Yorùbá: – Allow clear color for the ColorGradientControl

1.1.7

Release Date Ìtumọ̀ Yorùbá: – 04 October 2022

  • FIX Ìtumọ̀ Yorùbá: – placeholderÌtumọ̀ Yorùbá: ’s style is not loading in the site editor

1.1.6

Release Date Ìtumọ̀ Yorùbá: – 03 October 2022

  • FIX Ìtumọ̀ Yorùbá: – Focus on the search box on the first load

1.1.5

Release Date Ìtumọ̀ Yorùbá: – 29 September 2022

  • REFACTOR Ìtumọ̀ Yorùbá: – Redesign the placeholder for the block
  • DEV Ìtumọ̀ Yorùbá: – Add divider icons to the icon library
  • REFACTOR Ìtumọ̀ Yorùbá: – Using a data store for the icon library
  • FIX Ìtumọ̀ Yorùbá: – Remove empty style variables and add deprecated for them

1.1.4

Release Date Ìtumọ̀ Yorùbá: – 18 September 2022

  • FIX Ìtumọ̀ Yorùbá: – Compatibility issue with the Gutenberg plugin
  • DEV Ìtumọ̀ Yorùbá: – Refactor for localization

1.1.3

Release Date Ìtumọ̀ Yorùbá: – 31 August 2022

  • DEV Ìtumọ̀ Yorùbá: – Add stack context

1.1.2

Release Date Ìtumọ̀ Yorùbá: – 30 August 2022

  • DEV Ìtumọ̀ Yorùbá: – Change the default value for box-shadow
  • FIX Ìtumọ̀ Yorùbá: – Reset icon lists by clicking on the reset search button

1.1.1

Release Date Ìtumọ̀ Yorùbá: – 27 July 2022

  • FIX Ìtumọ̀ Yorùbá: – The block makes the page in ‘dirty’ state

1.1.0

Release Date Ìtumọ̀ Yorùbá: – 26 July 2022

  • DEV Ìtumọ̀ Yorùbá: – Allow the ability to turn the block into a button with text & icon
  • DEV Ìtumọ̀ Yorùbá: – Add ‘auto’ value to the options of width and height
  • DEV Ìtumọ̀ Yorùbá: – Double click on the icon on the modal to insert the icon

1.0.13

Release Date Ìtumọ̀ Yorùbá: – 01 July 2022

  • DEV Ìtumọ̀ Yorùbá: – Add box-sizing as border-box by default

1.0.12

Release Date Ìtumọ̀ Yorùbá: – 30 Jun 2022

  • FIX Ìtumọ̀ Yorùbá: – Convert inline style to style object

1.0.11

Release Date Ìtumọ̀ Yorùbá: – 19 Jun 2022

  • DEV Ìtumọ̀ Yorùbá: – Update SDK
  • DEV Ìtumọ̀ Yorùbá: – Refactor icon library modal
  • DEV Ìtumọ̀ Yorùbá: – Allow uploading SVG files

1.0.10

Release Date Ìtumọ̀ Yorùbá: – 12 May 2022

  • REFACTOR Update sdk

1.0.9

Release Date Ìtumọ̀ Yorùbá: – 30 April 2022

  • FIX Ìtumọ̀ Yorùbá: – Missing color slug

1.0.8

Release Date Ìtumọ̀ Yorùbá: – 30 April 2022

  • DEV Ìtumọ̀ Yorùbá: – Upgrade color format

1.0.7

Release Date Ìtumọ̀ Yorùbá: – 28 April 2022

  • DEV Ìtumọ̀ Yorùbá: – Add title to block registration in JS

1.0.6

Release Date Ìtumọ̀ Yorùbá: – 21 April 2022

  • DEV Ìtumọ̀ Yorùbá: – Optimize code for performance

1.0.5

Release Date Ìtumọ̀ Yorùbá: – 19 April 2022

  • REFACTOR Ìtumọ̀ Yorùbá: – Move the PanelColorGradientSettings out of PanelBody

1.0.4

Release Date Ìtumọ̀ Yorùbá: – 15 April 2022

  • DEV Ìtumọ̀ Yorùbá: – Icon library modal: focus the search box on open, press enter to insert icon

1.0.3

Release Date Ìtumọ̀ Yorùbá: – 12 April 2022

  • FIX Ìtumọ̀ Yorùbá: – Remove old cached icons due to storage limitation issue.

1.0.2

Release Date Ìtumọ̀ Yorùbá: – 10 April 2022

  • DEV Ìtumọ̀ Yorùbá: – Update icons pack

1.0.1

Release Date Ìtumọ̀ Yorùbá: – 07 April 2022

  • FIX Ìtumọ̀ Yorùbá: – Fix typo issue

1.0.0

Release Date Ìtumọ̀ Yorùbá: – 05 April 2022