Title: 勋章
Author: eroux
Published: <strong>2011 年 2 月 13 日</strong>
Last modified: 2024 年 5 月 3 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/badge.svg)

# 勋章

 作者：[eroux](https://profiles.wordpress.org/eroux/)

[下载](https://downloads.wordpress.org/plugin/badge.zip)

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

 [支持](https://wordpress.org/support/plugin/badge/)

## 描述

Display “Badges” in the side-panel which points to a web-site and an image which
is then used to build the “badge”.

To access the configuration you have to go to **_Appearance_ > _Widgets_** and edit
the settings in the Panel.

Using the Widget you can choose whether to:

 1. (Optionally) display a Title
 2. Link to a site
 3. Required link to an image to mark that site (any size will work, but the “standard”
    seems to be 88 pixels wide by 31 pixels high)
 4. Pad the Badge (including centring the text); some people may prefer using their
    own CSS, so this is an optional configuration.
 5. Enable “Display Badge in a Box” (enabled by default)
 6. Enable the Displaying of a Drop-Shadow

If more control is needed, or more badges need to be displayed, the [badges plugin](https://wordpress.org/extend/plugins/badges/)
on the WordPress site might be a better fit.

## 屏幕截图

 * [[
 * Create a “Licensing” badge that points to the Creative Commons website and uses
   a CC 88×31 banner
 * [[
 * The result of the configuration in No 1
 * [[
 * Boxing a 勋章 to SpreadFirefox with an added drop-shadow
 * [[
 * The resultant 勋章

## 安装

**Install**

 1. Unzip the `badges.zip` file.
 2. Upload `badges.php` to the `/wp-content/plugins/` directory.
 3. 通过WordPress的“插件”菜单激活插件。
 4. Use the “Badges” widget.

**Upgrade**

 1. Follow your normal installation process
 2. Open the Widget Control Panel for “Badges” and confirm settings.
 3. Sit back and enjoy…

**Use the WordPress Plug-in System**

 1. Select “Upgrade and Activate”
 2. Congratulate yourself on a sterling job.

## 常见问题

### How do I style the badges using CSS?

Quite simply by using the `div.badge` class.

### How do I style a single badge?

Every badge gets a unique ID generated by the plug-in based on the plug-in’s name
and the badge’s container ID. This will likely look something like “inner-badge-[
NUMBER]”.

## 评价

此插件暂无评价。

## 贡献者及开发者

「勋章」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ eroux ](https://profiles.wordpress.org/eroux/)

[帮助将「勋章」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/badge)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.5

 * Very minor update to update the links to my blog
 * Tested up to WordPress 5.2.3

#### 1.1

 * Minor update to add an “id” selector to the displayed badges

#### 1.0

 * Initial Public Release

## 额外信息

 *  版本 **1.6**
 *  最后更新：**2 年前**
 *  活跃安装数量 **80+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.5.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/badge/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[administration](https://cn.wordpress.org/plugins/tags/administration/)
   [badges](https://cn.wordpress.org/plugins/tags/badges/)
 *  [高级视图](https://cn.wordpress.org/plugins/badge/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/badge/reviews/)

## 贡献者

 *   [ eroux ](https://profiles.wordpress.org/eroux/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/badge/)