| 开发者 |
dgwyer
wpgoplugins gwycon |
|---|---|
| 更新时间 | 2026年8月11日 23:54 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[svg-flag flag="gb"], an accessible image with [svg-flag-image flag="fr"], or a gallery with [svg-flag-grid flags="gb,us,ca,fr" columns="4" caption="true"].
Need more presentation control?
SVG Flags Pro adds flag headings, custom captions and tooltips, IDs and CSS classes, plus border, spacing, and presentation controls. Explore SVG Flags Pro for the complete feature comparison and current pricing.
We hope you find this plugin useful. If you have a moment please consider rating it to show your support. It's very much appreciated and helps spread the word.
Also, why not take a look at our other plugins. We're continually developing great solutions for WordPress.
Visit the plugin documentation page to see available SVG flags blocks, shortcodes and attributes, plus related options.
Visit the SVG Flags product page for current examples, feature details, and links to the full documentation.
If you use the SVG flag editor blocks then you won't need to remember any shortcodes at all as you can add flags to your page content 100% visually. No need to remember which shortcodes are available. You will also be able to see a live preview of the flag in the editor when using a block, which you can't do with shortcodes.
The plugin uses Alpha-2 codes for countries and territories, plus the additional regional and organisation codes included by the bundled flag-icons library. You can look up standard country codes here.
[svg-flags] shortcode as a recent update to the Gutenberg block editor seems to strip out using the SVG flag HTML directly. Use the new shortcode to guarantee the flag will always display in the block editor and on the front end.