AnySVG – Custom icon widget for elementor

Description

Tired of being limited to pre-bundled icon libraries in Elementor? AnySVG lets you use any SVG icon on the web!

Simply paste your raw SVG code directly into the widget, and style it with all the familiar controls of Elementor’s native Icon widget.

Key Features

  • Paste Raw SVG: Paste clean SVG code from Heroicons, Bootstrap Icons, FontAwesome, or your own design tools.
  • Auto-Cleaning and Scale Prep: Automatically strips inline width, height, and style attributes so the Elementor size settings can scale the icon beautifully.
  • Auto viewBox Synthesis: If your SVG is missing a viewBox but has width and height, AnySVG automatically adds it so it never crops.
  • Advanced Color Overrides: Select from four color mapping modes: Keep Original (for colored logos), Force Fill, Force Stroke, or Force Both.
  • Familiar Elementor Controls: Customize View (Default, Stacked, Framed), Shape (Circle, Square), Link URL, Size, Spacing/Padding, Border Width, Border Radius, Rotation, and Alignments.
  • Normal & Hover States: Configure primary/secondary colors and hover transitions.
  • Backbone Live Preview: Instant updates inside the Elementor editor screen.

Installation

  1. Upload the plugin folder anysvg to the /wp-content/plugins/ directory, or upload the ZIP file via the WordPress plugin uploader.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Open any page in Elementor editor, drag the “AnySVG Icon” widget into your layout, and start designing.

FAQ

Can I use multi-colored SVGs?

Yes! Set the Color Override Mode to Keep Original Colors to preserve the custom gradients or colors of your logo or graphic.

How do I resize the SVG?

Use the Size slider under the Style tab. The plugin automatically cleans up hardcoded SVG widths/heights so Elementor’s sizing overrides them correctly.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“AnySVG – Custom icon widget for elementor” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.1

  • Bump version to 1.0.1.
  • Add Requires Plugins header.
  • Secure and expand SVG sanitizer whitelist (clip-path, masks, symbol support).
  • Fix XML comments/prologue bypassing cleanup.
  • Smooth CSS transitions for hover state colors.

1.0.0

  • Initial release of AnySVG custom icon widget.