SVG Icon Block

Descripción

SVG Icon Block is a custom Gutenberg block plugin that allows you to add SVG icon to your Gutenberg block editor. It comes with a lot of customization options, as a result, you can customize it as per your needs.

Video Tutorial

Features

  • Easy to use
  • Simple, light-weight and fast
  • Font Awesome SVG Icon ( not font library, rather direct SVG)
  • Direct SVG upload option
  • SVG format support for direct upload
  • My Icons library – save your own SVG code once and reuse it in any block
  • Rotate, Flip (Horizontal & Vertical) features are available
  • No third-party dependencies.
  • Only SVG codes are rendered.

My Icons

Paste your SVG code in the Custom SVG window, turn on Add to My Icons, give it a label, and the icon is saved to your site. A My Icons button then appears in the block placeholder so you can pick that icon again in any post or page, without pasting the code a second time.

The library is shared by everyone on the site who can edit posts, so a logo or brand icon saved by one author is available to the whole team. Saved icons can be searched and removed from the same window.

Every icon is sanitized before it is stored, using the same security checks applied to uploaded SVG files: scripts, event handlers and unsafe links are stripped out.

Capturas

Bloques

Este plugin proporciona 1 bloque.

  • SVG Icon Add an icon from Font Awesome, your own SVG code, or an uploaded SVG file.

Instalación

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

Reseñas

No hay valoraciones para este plugin.

Colaboradores y desarrolladores

«SVG Icon Block» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«SVG Icon Block» está traducido en 1 idioma. Gracias a los traductores por sus contribuciones.

Traduce «SVG Icon Block» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

1.2.0

  • Fixed: Icons no longer vanish when saved by Authors, Contributors, or on Multisite (users without unfiltered HTML)
  • Fixed: Adding a background image no longer drops every other style of the block on the front end
  • Fixed: SVG code typed in the sidebar is now sanitized, and invalid markup no longer replaces the icon
  • Added: Alternative text for icons, with a warning for icon-only links that have no accessible name
  • Added: Additional CSS class and HTML anchor settings
  • Added: Popular icons in the block placeholder for one-click insert
  • Improved: Redesigned icon library, Custom SVG window, My Icons window and block placeholder
  • Improved: Removing a saved icon from My Icons now asks for confirmation, since the library is shared site-wide
  • Improved: Custom SVG window validates markup, previews on light, dark and transparent backgrounds, and accepts dropped .svg files
  • Improved: Font Awesome data loads only when needed, making the editor script about 88% smaller

1.1.0

  • Added: My Icons library – save a custom SVG with «Add to My Icons» and reuse it in any block
  • Added: My Icons button in the block placeholder to pick a saved icon, with search and remove
  • Fixed: SVG upload no longer failed on icons exported from Illustrator, Inkscape and similar tools
  • Fixed: An SVG that could not be parsed is now rejected with a clear message instead of being saved empty
  • Fixed: SVG uploads sent through the REST API (drag and drop into the editor) are accepted
  • Fixed: PHP notices while preparing SVG attachments, which could break the upload response
  • Fixed: Link is no longer clickable inside the editor, so an accidental click does not navigate away
  • Improved: SVG sanitizer rewritten to an allow-list, stripping scripts, event handlers, unsafe links and external references
  • Improved: SVG width, height and previews now display correctly in the media library

1.0.6

  • Compatibility check

1.0.5

  • Transform features (rotate, flip) are added
  • Dynamic CSS codes are optimized

1.0.4

  • Compatibility with WordPress 6.8

1.0.3

  • Added: Edit SVG Icon option at sidebar
  • Improved: Search functionality for icons
  • Optimized: Codes are optimized

1.0.2

  • Added: Direct SVG upload option
  • Added: SVG format support for direct upload

1.0.1

  • Compatibility with WordPress 6.7.1

1.0.0

  • Initial Release