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’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’re interested:
Content Blocks Builder – A tool to create blocks, patterns or variations easily for your site directly on the Block Editor.
Meta Field Block – A block to display a meta field or an ACF field as a block. It can also be used in the Query Loop block.
Block Enhancements – A plugin to add more useful features to blocks like icons, box-shadow, transform, hover style, etc.
Icon separator – A tiny block just like the core/separator block but with the ability to add an icon to it.
Counting Number Block – A block to display a number that has the number-counting effect.
Breadcrumb Block – A simple breadcrumb trail block that supports JSON-LD structured data.
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’s super easy to use. It’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…