Linux 软件免费装

OH MY SVG

开发者 codekraft
更新时间 2026年4月29日 13:14
PHP版本: 7.1 及以上
WordPress版本: 6.9
版权: GPLv3 or later
版权网址: 版权信息

标签

performance blocks svg icon vector

下载

0.1.2 0.1.0 0.1.1 0.1.3 1.5.0

详情介绍:

Enhance your WordPress website with the power of SVG images using the OH MY SVG plugin. Easily add, manipulate, and optimize SVG images directly within the Gutenberg block editor. Unlike traditional image blocks, this plugin provides an intuitive interface that allows you to incorporate SVG icons, illustrations, or HTML snippets effortlessly. Experience the convenience of automatic markup sanitation, SVGO optimization, and a range of built-in utilities like color customization, stroke adjustments, and element stripping. 🌟 Smart Dual Storage Modes (New!) One of the biggest issues with using SVGs in WordPress is database bloat. If you paste a heavy SVG directly into the editor, its entire XML markup gets saved into every single post revision, quickly cluttering your database. OH MY SVG solves this by offering two distinct storage modes:
  1. Inline Mode (Best for tiny icons): The SVG markup is embedded directly within the page's HTML. This drastically reduces page load time by eliminating server requests and conserving bandwidth. Ideal for small, lightweight vectors.
  2. Media Library Mode (Best for heavy illustrations): To prevent database bloat, this mode saves the SVG behind the scenes as a custom post meta attached to the WordPress Media Library. The plugin automatically generates a lightweight PNG proxy image so you can see it in your media grid. On the front end, it renders cleanly using a data URI, keeping your post content light, your database clean, and your page performance high.
Unleash your creativity with endless possibilities—animate SVGs using CSS or JavaScript, modify inner colors, and scale infinitely without losing sharpness.

安装:

This plugin can be installed directly from your WordPress site.
  1. Log in to your WordPress site and navigate to Plugins → Add New.
  2. Type "OH MY SVG" into the Search box.
  3. Locate the OH MY SVG plugin in the list of search results and click Install Now.
  4. Once installed, click the Activate button.
It can also be installed manually using a zip file.
  1. Download the OH MY SVG plugin from WordPress.org.
  2. Log in to your WordPress site and navigate to Plugins → Add New.
  3. Click the Upload Plugin button.
  4. Click the Choose File button, select the zip file you downloaded, then click the Install Now button.
  5. Click the Activate Plugin button.

屏幕截图:

  • Svg as icon (link, alignment)

常见问题:

Can I use SVGs for buttons, icons, and other elements?

Absolutely! The Svg Block allows you to use SVGs for various elements on your website. You can even create a Reusable Block to conveniently manage the same SVG across multiple locations.

When should I use "Inline" vs "Save to Library"?

Use Inline for very small, simple SVGs (like UI icons or small logos) where saving an HTTP request is beneficial. Use Save to Library for complex, path-heavy illustrations. This prevents the massive SVG text string from being duplicated in your database every time WordPress autosaves a post revision.

Can I animate SVGs with CSS or JavaScript?

Yes, you can easily animate them. If you use the Inline mode, the SVG nodes are injected directly into the DOM, making them fully targetable via CSS and JS scripts.

更新日志:

1.5.0 0.1.4 0.1.3 - 2023-02-02 0.1.2 - 2022-10-22 0.1.1 - 2022-08-03 0.1.0 - 2022-07-25