Title: SVG Flags &#8211; Beautiful Scalable Flags For All Countries!
Author: David Gwyer
Published: <strong>2017 年 10 月 22 日</strong>
Last modified: 2022 年 3 月 22 日

---

搜索插件

![](https://ps.w.org/svg-flags-lite/assets/banner-772x250.png?rev=2472531)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/svg-flags-lite/assets/icon-256x256.png?rev=2472365)

# SVG Flags – Beautiful Scalable Flags For All Countries!

 作者：[David Gwyer](https://profiles.wordpress.org/dgwyer/)

[下载](https://downloads.wordpress.org/plugin/svg-flags-lite.0.9.6.zip)

 * [详情](https://cn.wordpress.org/plugins/svg-flags-lite/#description)
 * [评价](https://cn.wordpress.org/plugins/svg-flags-lite/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/svg-flags-lite/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/svg-flags-lite/#developers)

 [支持](https://wordpress.org/support/plugin/svg-flags-lite/)

## 描述

SVG Flags of the world allows you to add high quality beautiful flags to your WordPress
site in seconds. Display one or more flags at any scale without loss of quality 
and with a fixed aspect ratio so they always look great! Supported aspect ratios
are 4:3 (default) and 1:1 (square).

Create SVG flags visually, directly inside the Gutenberg block editor and preview
them in realtime without having to leave the editor window. No more having to remember
shortcode names and long lists of shortcode attributes.

The plugin also includes shortcodes if you prefer to use these instead. If your 
site is using the classic WordPress editor then you have no choice but to use shortcodes.
To add SVG flags to your content it’s as simple as inserting the `[svg-flags]` shortcode
into a post or page. See the main plugin settings page for full information on all
the attributes available.

We hope you find this plugin useful. If you have a moment please consider [**rating**](https://wordpress.org/support/view/plugin-reviews/svg-flags-lite)
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](https://www.wpgoplugins.com). We’re
continually developing great solutions for WordPress.

## 屏幕截图

 * [[
 * SVG flags rendering in the Gutenberg block-based editor.
 * [[
 * SVG Aspect Ratio.
 * [[
 * Headings.
 * [[
 * Div, Span, and Paragraph elements.
 * [[
 * Flag Sizes.
 * [[
 * Tables.

## 区块

该插件提供了 3 个区块.

 *   SVG Flags – Beautiful Scalable Flags For All Countries!
 *   SVG Flags – Beautiful Scalable Flags For All Countries!
 *   SVG Flags – Beautiful Scalable Flags For All Countries!

## 安装

 1. Via the WordPress admin go to Plugins => Add New.
 2. Enter ‘SVG Flags’ (without quotes) in the text box and click the ‘Search Plugins’
    button.
 3. In the list of relevant Plugins click the ‘Install’ link for SVG Flags on the right
    hand side of the page.
 4. Click the ‘Install Now’ button on the popup page.
 5. Click ‘Activate Plugin’ to finish installation.
 6. You’ll be redirected to the plugin welcome page upon activation which gives basic
    usage instructions and other information to get you started.

## 常见问题

### Where can I see all the available SVG flag blocks, shortcodes, and attributes?

Visit the [plugin documentation page](https://wpgoplugins.com/document/svg-flags-documentation/)
to see available SVG flags blocks, shortcodes and attributes, plus related options.

### Is there a live demo available for the plugin?

Yes! You can see live examples of SVG flags available [here](https://demo.wpgothemes.com/flexr/svg-flags-demo/).

### Is there a way to remember all shortcode attributes?

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.

### Where can I get the country code for each flag?

The plugin uses the Alpha-2 code system to identify individual countries. You can
look up the the code for any specific country [here](https://www.iban.com/country-codes).

## 评价

![](https://secure.gravatar.com/avatar/ec8b8422bb465ae8bc396e91e6078b8974b35a964447f8c8ecc86edf1ac2b281?
s=60&d=retro&r=g)

### 󠀁[Thank you for your work!](https://wordpress.org/support/topic/thank-you-for-your-work-20/)󠁿

 [RealMag777](https://profiles.wordpress.org/realmag777/) 2025 年 4 月 22 日

Thank you for your work!

![](https://secure.gravatar.com/avatar/07833ac06bd2f8083171b5291eab3165736cb18ae275f159c7269ba5221f88a7?
s=60&d=retro&r=g)

### 󠀁[cool](https://wordpress.org/support/topic/cool-1236/)󠁿

 [podroznik](https://profiles.wordpress.org/podroznik/) 2023 年 1 月 11 日

nice plugins works well in what it was intended to do

![](https://secure.gravatar.com/avatar/2ba5e4a3c4bba0360921f4a06f0d687900df99e4420e2e8ed8bd533cbe06027a?
s=60&d=retro&r=g)

### 󠀁[Super-confusing and slows the website down](https://wordpress.org/support/topic/super-confusing-and-slows-the-website-down/)󠁿

 [sickleadz](https://profiles.wordpress.org/sickleadz/) 2022 年 7 月 30 日 1 回复

Super-confusing and slows the website down. Uninstalled.

![](https://secure.gravatar.com/avatar/ffec45b9db303f32b31d83aeed58c834cd10e5fcb50643371e27842574fe7c06?
s=60&d=retro&r=g)

### 󠀁[Simple and intuitive](https://wordpress.org/support/topic/simple-and-intuitive-20/)󠁿

 [wxia0822](https://profiles.wordpress.org/wxia0822hotmailcom/) 2019 年 9 月 1 日
1 回复

Work as described.

![](https://secure.gravatar.com/avatar/e0bb86e5d0f213301dda50b6afec7091a55e20ad3494a1ecd4636d66788aba50?
s=60&d=retro&r=g)

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-6022/)󠁿

 [Love Regefalk](https://profiles.wordpress.org/monengo/) 2019 年 8 月 13 日 1 回复

Just what I was looking for!

![](https://secure.gravatar.com/avatar/12a008deacf003918520361acfab85d5e7e01ca4f5fd827b3b5d86cb55085aea?
s=60&d=retro&r=g)

### 󠀁[A really nice simple plugin.](https://wordpress.org/support/topic/i-really-nice-simple-plugin/)󠁿

 [moleisking](https://profiles.wordpress.org/moleisking/) 2018 年 6 月 14 日 1 回复

I really nice simple plugin for maps. It would be nice to add the flags via shortcodes
or in the titles, and posts without the use of HTML.

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/svg-flags-lite/reviews/)

## 贡献者及开发者

「SVG Flags – Beautiful Scalable Flags For All Countries!」是开源软件。 以下人员
对此插件做出了贡献。

贡献者

 *   [ David Gwyer ](https://profiles.wordpress.org/dgwyer/)
 *   [ wpgoplugins ](https://profiles.wordpress.org/wpgoplugins/)
 *   [ gwycon ](https://profiles.wordpress.org/gwycon/)

[帮助将「SVG Flags – Beautiful Scalable Flags For All Countries!」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/svg-flags-lite)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/svg-flags-lite/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/svg-flags-lite/)，或通过[RSS](https://plugins.trac.wordpress.org/log/svg-flags-lite/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/svg-flags-lite/)。

## 更新日志

#### 0.9.6, MAR 21, 2022

 * Updated Freemius SDK to v2.4.3.

#### 0.9.5, JAN 29, 2021

 * Updated 3rd party libraries.
 * Minor bug fixes and UI updates.

#### 0.9.3, SEP 7, 2020

 * New: Added a new [svg-flag-heading] shortcode.
 * New: Added a block as an alternative to the [svg-flag-heading] shortcode.
 * New: Added a block as an alternative to the [svg-flag-image] shortcode.
 * Fixed: New features counter now working correctly.

#### 0.9.2, SEP 7, 2020

 * Patched bug in new features counter.

#### 0.9.1, AUG 28, 2020

 * Updated: Refactored code.

#### 0.9.0, MAR 11, 2020

 * New: Added new [svg-flag-image] shortcode.
 * New: Attributes added to the [svg-flag] shortcode: size, size_unit.
 * New: Attributes added to the [svg-flag] shortcode that were previously ONLY available
   in pro: caption, random, inline.
 * New: Added new editor block which is a direct replacement to the [svg-flag] shortcode.
 * Updated: Deployment script.

#### 0.8, DEC 02, 2020

 * Updated settings.

#### 0.7, DEC 30, 2019

 * Updated settings page.

#### 0.6, DEC 24, 2019

 * Maintenance release.

#### 0.5, DEC 23, 2019

 * Fixed ‘square’ shortcode attribute.
 * Most of the code refactored.
 * Compatible with WordPress 5.3.

#### 0.4, MAY 21, 2019

 * Minor bug fix.

#### 0.3, MAY 21, 2019

 * Added new `[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.

#### 0.2, APRIL 26, 2019

 * Flag SVG’s updated to latest version (3.3).
 * SVG flags now work in the WordPress (5.0+) block editor.

#### 0.1, OCTOBER 25, 2017

 * Initial plugin release!

## 额外信息

 *  版本 **0.9.6**
 *  最后更新：**4 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.9.13**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/svg-flags-lite/)
 * 标签
 * [country](https://cn.wordpress.org/plugins/tags/country/)[flag](https://cn.wordpress.org/plugins/tags/flag/)
   [scalable](https://cn.wordpress.org/plugins/tags/scalable/)[SVG](https://cn.wordpress.org/plugins/tags/svg/)
   [world](https://cn.wordpress.org/plugins/tags/world/)
 *  [高级视图](https://cn.wordpress.org/plugins/svg-flags-lite/advanced/)

## 评级

 4.3 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/svg-flags-lite/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/svg-flags-lite/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/svg-flags-lite/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/svg-flags-lite/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/svg-flags-lite/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/svg-flags-lite/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/svg-flags-lite/reviews/)

## 贡献者

 *   [ David Gwyer ](https://profiles.wordpress.org/dgwyer/)
 *   [ wpgoplugins ](https://profiles.wordpress.org/wpgoplugins/)
 *   [ gwycon ](https://profiles.wordpress.org/gwycon/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/svg-flags-lite/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6R94JSPJE9358)