Title: Special Text Boxes
Author: minimus
Published: <strong>2009 年 4 月 17 日</strong>
Last modified: 2026 年 3 月 4 日

---

搜索插件

![](https://ps.w.org/wp-special-textboxes/assets/banner-772x250.png?rev=1027834)

![](https://ps.w.org/wp-special-textboxes/assets/icon-256x256.png?rev=1027834)

# Special Text Boxes

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

[下载](https://downloads.wordpress.org/plugin/wp-special-textboxes.6.5.zip)

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

 [支持](https://wordpress.org/support/plugin/wp-special-textboxes/)

## 描述

Adds little style sheet file and short code to blog for highlighting some portion
of text in a post as colored boxes. 7 styles are available. That may be warning,
alert, info and download styled portion of the post’s text.

If you need to explore the source code of plugin, you can find it on [GitHub](https://github.com/minimus/wp-special-textboxes).

Available languages:

 * English
 * Russian

If you have created your own language pack, or have an update of an existing one,
you can send **.po** and **.mo files** to me (minimus AT simplelib.com) so that 
I can bundle it into **Special Text Boxes**.

Real examples of outputs you can see on the [plugin page](http://www.simplelib.com/archives/wordpress-plugin-wp-special-textboxes/)

[Compare feature set](http://stb.simplelib.com/info/compare-stb/) of different editions
of the STB plugin and choose exactly what you need.

## 屏幕截图

 * [[
 * Special Text Boxes Styles Page
 * [[
 * Special Text Boxes Settings Page
 * [[
 * Special Text Boxes Box Editor
 * [[
 * Special Text Boxes Themes Selector
 * [[
 * Insertion dialog. Basic Settings
 * [[
 * Insertion dialog. Extended Settings
 * [[
 * Special Text widget. Admin Page
 * [[
 * Special Text block. Editor Page

## 区块

该插件提供了 1 个区块.

 *   Special Text Highlights block of text as colored text block.

## 安装

 1. Upload plugin dir to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use short codes in the text of post to highlight any portion of it.

## 常见问题

### How to insert special text box to post’s text?

Use short codes:

    ```
    [stextbox id="ValidID"]Highlighted text here[/stextbox]
    ```

or (for captioned textbox)

    ```
    [stextbox id="ValidID" caption="CaptionText"]Highlighted text here[/stextbox]
    ```

were

**ValidID** may be: _alert_, _info_, _download_, _grey_, _black_, _warning_, _custom_

**CaptionText** may be: _any text you needed_.

### How to insert special text box to theme file (not to post)?

Use function **stbHighlightText**:

    ```
    <?php if(function_exists('stbHighlightText')) echo stbHighlightText('Test of function stbHighlightText.', 'warning'); ?>
    ```

defined as

    ```
    function stbHighlightText( $content = null, $id = 'warning', $caption = '', $atts = null )
    ```

### How to insert special text box into special text box?

Use _stb_ shortcode inside _stextbox_ shortcode

    ```
    [stextbox]Some text [stb]Some text in the indoor box[/stb][/stextbox]
    ```

More about Special Text Boxes usage and customising read on the [plugin page](http://www.simplelib.com/archives/wordpress-plugin-wp-special-textboxes/)

## 评价

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

### 󠀁[Working Great…Now!](https://wordpress.org/support/topic/was-working-well-until-it-didnt/)󠁿

 [Michael](https://profiles.wordpress.org/archangel76/) 2026 年 6 月 2 日 1 回复

Initially, I rated the plugin as a one-star because something broke a few months
ago and text was no longer accepted in the field. However, the developers fixed 
the issue and it has been running great for me ever since. I’m crossing my fingers
that it stays that way, but who knows with today’s technology. Thank you for addressing
the issue and making the plugin useful again.

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

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

 [Nikita](https://profiles.wordpress.org/xturbox/) 2024 年 6 月 26 日

It looks as if the plugin was developed 10 years ago and has not been updated

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

### 󠀁[Did not work for me](https://wordpress.org/support/topic/did-not-work-for-me-59/)󠁿

 [relivin](https://profiles.wordpress.org/relivin/) 2022 年 12 月 14 日

Gave error message. Don’t know why.

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

### 󠀁[Nice Plugin](https://wordpress.org/support/topic/nice-plugin-671/)󠁿

 [Oliver Nielsen](https://profiles.wordpress.org/oliver-nielsen/) 2016 年 10 月 
24 日

Very good !

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

### 󠀁[Works perfectly](https://wordpress.org/support/topic/works-perfectly-820/)󠁿

 [etravelcontent](https://profiles.wordpress.org/majestor/) 2016 年 9 月 3 日

Really nice Plugin

 [ 阅读所有21条评价 ](https://wordpress.org/support/plugin/wp-special-textboxes/reviews/)

## 贡献者及开发者

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

贡献者

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

「Special Text Boxes」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-special-textboxes/contributors)
为本插件所做的贡献。

[帮助将「Special Text Boxes」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-special-textboxes)

### 对开发感兴趣吗?

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

## 更新日志

#### 6.5

 * update: updated to React 19
 * update: third party libraries are updated
 * fix: block’s content input is fixed
 * fix: admin data requests are fixed

#### 6.2.6

 * WordPress 6.8 ready

#### 6.2.5

 * Plugin security improved

#### 6.2.4

 * Plugin security improved

#### 6.2.2

 * WordPress 6.5 ready

#### 6.2.1

 * WordPress 6.4 ready

#### 6.2

 * WordPress 6.3 ready

#### 6.1

 * added: border width param
 * fixed: collapsed box style
 * Some development improvements

#### 6.0.2

 * WordPress 6.1 ready
 * Some development improvements

#### 6.0.1

 * Some improvements

#### 6.0.0

 * ReactJS based admin interface
 * Special Text Block for Editor Page
 * REST API

#### 5.9.108

 * WordPress 5.1 ready

#### 5.9.107

 * The tinyMCE dialog bug has been fixed

#### 5.8.106

 * WordPress 4.8 compatibility

#### 5.7.105

 * Some improvements on admin pages
 * Removed deprecated functions

#### 5.6.103

 * Some changes to prevent vulnerability of plugin have been made

#### 5.5.102

 * WordPress 4.6 ready

#### 5.5.101

 * WordPress 4.5 ready

#### 5.5.100

 * WordPress 4.4 compatibility
 * Language pack is updated. Swahili by Andrew Mwaniki is added.

#### 5.4.98

 * The bug of creating DB table with charset utf8mb4 is solved.

#### 5.3.97

 * WordPress 4.3 compatibility

#### 5.3.95

 * Minor bug fixed

#### 5.3.94

 * Conflict between STB and SAM was resolved

#### 5.3.93

 * Made some improvements
 * Ready for WordPress 4.1

#### 5.2.91

 * The possibility of manipulating custom themes has been removed by request of 
   administration of _wordpress.org_ plugins repository.

#### 5.1.90

 * Minor bug of JS mode is resolved
 * Dynamic CSS mode is optimized

#### 5.1.88

 * TinyMCE 4 compatibility bug is fixed
 * NoImage bug is fixed
 * WordPress 4 compatibility is tested

#### 5.0.86

 * TinyMCE compatibility bug is fixed

#### 5.0.85

 * Themes of context boxes is added
 * Javascript codes are improved
 * PHP codes are improved
 * Bugs are fixed

#### 4.5.81

 * Major bug is fixed

#### 4.5.80

 * CSS mode is optimized
 * Output codes are optimized
 * Media Loader is added
 * Language pack is updated. Spanish by Andrew Kurtis is added.
 * Some bugs are fixed

#### 4.4.75

 * Text Line Height settings are added.
 * Some bugs are resolved.

#### 4.3.73

 * Language pack is updated. Slovak by Branco is added

#### 4.3.72

 * Static Style Sheet mode (CSS mode) is added
 * User Level is changed to Capability

#### 4.2.70

 * Bug of STB output function is fixed.

#### 4.1.69

 * Some bugs are fixed.
 * Control of block’s shadow from short codes is added.
 * Improvements in the interface of plugin are made.
 * Compatibility with “WordPress Post Tabs” plugin is added.

#### 4.0.65

 * Styles repository is added
 * Javascript drawing mode is added
 * New Styles Editor is added
 * New rules of text blocks drawing are added
 * Some bugs are resolved

#### 3.10.60

 * Italian language pack is updated.

#### 3.10.59

 * Minor bug are fixed
 * Language pack is updated. Turkish by Serhat ESEN is added

#### 3.9.57

 * The amount of the parameters adjusted “on the fly” is increased
 * The output html code meets the requirements of the markup validity of Web documents

#### 3.8.55

 * Now the plugin codes are using **WordPress 3.0+** standards (PHP5 only)
 * WordPress Settings API are used
 * Now the plugin uses “resources saving technology” for saving server resources
   in blog runtime mode.

#### 3.7.52

 * Language pack is updated. Czech by [Stanislav Čihák](http://www.abacomp.cz/) 
   are added.

#### 3.7.51

 * Tool Button bug are fixed.
 * STB in STB shortcodes are added.

#### 3.6.49

 * Collapsed mode bug are fixed.
 * Special Text Widget bug are fixed.
 * Language pack is updated. Ukrainian by [official ukrainian localization team](http://wordpress.co.ua/)
   is added.
 * Language pack is updated. German by [Renate](http://www.bhvnederland.nl/) is 
   added.

#### 3.5.45

 * Language pack is updated. Dutch by [Rene](http://wpwebshop.com/blog/) are added.

#### 3.5.44

 * Floating mode bug are fixed
 * **stbHighlightText** function bug (collapsed option) are fixed
 * CSS3 styles are fixed

#### 3.4.41

 * Insertion Dialog bug are fixed

#### 3.4.40

 * Font size parameters are added
 * Bug of caption size is eliminated
 * Language pack is updated. Arabic language by [مدونة رسين](http://www.r-sn.com/wp/)
   is added.
 * Support of text direction is added.
 * Codes are optimised

#### 3.3.35

 * Collapsing/Expanding mode of captioned Special Text Boxes was extended
 * PHP codes was optimised
 * JS codes was optimised

#### 3.2.32

 * Collapsing/Expanding of captioned Special Text Boxes was added
 * Codes was optimised

#### 3.1.29

 * Some admin page improvements was added
 * Codes was optimised

#### 3.0.27

 * Special Text widget was added
 * Special Text Box Float Mode was added

#### 2.0.25

 * Polish language pack by [Daniel Fruzynski](http://www.poradnik-webmastera.com)
   added
 * Italian language pack updated

#### 2.0.23

 * Uzbek language pack by [Alisher Safarov](http://www.comfi.com) added
 * WordPress 2.8.4 compatibility tested

#### 2.0.22

 * Direct output codes optimised
 * Italian language pack updated

#### 2.0.20

 * Plugin style sheet optimised
 * Big icons for simple (non-captioned) boxes added
 * Short Codes Insert Dialog added
 * Output function added
 * Plugin codes optimised

#### 1.2.13

 * Belarus language by [Fat Cower](http://www.fatcow.com) added
 * WordPress 2.8.1 compatibility tested

#### 1.2.12

 * Italian language by [Gianni Diurno](http://gidibao.net/) added

#### 1.2.11

 * custom box added
 * custom editor added
 * customising “on the fly” added
 * WordPress 2.8 compatibility checked

#### 1.1.7

 * black box margins bug fixed

#### 1.1.6

 * codes and variables cleanup
    - admin page codes optimised
    - activation codes optimised for future upgrades
 * margin settings added

#### 1.0.1

 * Initial upload

## 额外信息

 *  版本 **6.5**
 *  最后更新：**3 月前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 5.6 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-special-textboxes/) 和 [Russian](https://ru.wordpress.org/plugins/wp-special-textboxes/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-special-textboxes)
 * 标签
 * [color](https://cn.wordpress.org/plugins/tags/color/)[content](https://cn.wordpress.org/plugins/tags/content/)
   [info](https://cn.wordpress.org/plugins/tags/info/)[performance](https://cn.wordpress.org/plugins/tags/performance/)
   [text](https://cn.wordpress.org/plugins/tags/text/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-special-textboxes/advanced/)

## 评级

 3.4 星（最高 5 星）。

 *  [  8 条 5 星评价     ](https://wordpress.org/support/plugin/wp-special-textboxes/reviews/?filter=5)
 *  [  5 条 4 星评价     ](https://wordpress.org/support/plugin/wp-special-textboxes/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/wp-special-textboxes/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/wp-special-textboxes/reviews/?filter=2)
 *  [  6 条 1 星评价     ](https://wordpress.org/support/plugin/wp-special-textboxes/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/wp-special-textboxes/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wp-special-textboxes/)

## 捐助

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

 [ 捐助此插件 ](http://www.simplelib.com)