WordPress plugin Special Text Boxes
Special Text Boxes is very simple, very little and very useful WordPress plugin (for me and, I hope, for you). It adds little style sheet file and short code to blog for highlighting some portion of text in post as colored boxes. That may be warning, alert, info and download portion of post’s text.
(This post is available on russian language.)
Support Forum for this plugin.
Examples
Simple boxes:






Installation
- Unpack plugin archive file.
- Put plugin folder to WordPress
wp-content/pluginsfolder. - Activate plugin on Admin page.
Settings

wp-special-textboxes Admin Panel
You can set border style, text shadow, box shadow and Allow or disable rounded corners for your special text boxes.
Available languages of Admin Panel:
- English
- Russian
- Italian by Gianni Diurno
- Belarus by Fat Cower
- Uzbek by Alisher Safarov
- Polish by Daniel Fruzynski
- Arabic by مدونة رسين
- Dutch by Rene
- Ukrainian by official ukrainian localization team
- German by Renate
If you want and can translate this plugin to your language, do it, and send me .po file by e-mail (minimus AT simplelib.com). Thanks.
Custom Box Editor

Custom Box Editor
You can color custom special text box using Custom Box Editor.
Usage
To embed special textbox to your post, use short code as this:
OR
[stextbox id="defined_id" caption="Some Caption"]Highlighted text and/or short code(s)[/stextbox]
where defined_id may be alert, download, info, warning, black, custom and gray.
You can insert short code(s) of another plugin(s) inside wp-special-textboxes short code. For example:

Customising “On The Fly”

Customisation Short Code Options:
- color – body font color
- ccolor – caption font color
- bcolor – border color
- bgcolor – background color
- cbgcolor – caption background color
- image – full URL of pictogram image. Use null value as URL to disable image output
- big – use this parameter in case plugin settings are different with your needs. May be true or false.
- float – turn on floating mode of Special Text Box. May be true or false.
- align – alignment of box in float mode. May be left or right.
- width – width of box in float mode (pixels)
- collapsed – display STB in collapsed mode if collapse/expand mode enabled. May be true or false.

Insertion Dialog. Basic Settings

Insertion Dialog. Extended Settings
You can use Insertion Dialog to insert short code to post. Just select text you needed and click “Insert Special Text Box” button.
Special Text Box anywhere in blog
You can use function stbHighlightText to output Box anywhere in your blog.
This function defined as
function stbHighlightText( $content = null, $id = 'warning', $caption = '', $atts = null )- $content – text in the Box (string)
- $id – ID of Box (string)
- $caption – caption of Box if needed (string)
- $atts – extended attributes of Box (array)
atts = array(
'color' => '',
'ccolor' => '',
'bcolor' => '',
'bgcolor' => '',
'cbgcolor' => '',
'image' => '',
'big' => '',
'float' => 'false',
'align' => 'left',
'width' => '200',
'collapsed' => '' );- color – body font color (six HEX digits of color without # as string)
- ccolor – caption font color (six HEX digits of color without # as string)
- bcolor – border color (six HEX digits of color without # as string)
- bgcolor – background (six HEX digits of color without # as string)
- cbgcolor – caption background color (six HEX digits of color without # as string)
- image – full URL of pictogram image. Use null value as URL to disable image output (string)
- big – use this parameter in case plugin settings are different with your needs. May be true or false (boolean as string).
- float – turn on floating mode of Special Text Box. May be true or false. (string)
- align – alignment of box in float mode. May be left or right. (string)
- width – width of box in float mode (pixels) (string)
- collapsed – display STB in collapsed mode if collapse/expand mode enabled. May be true or false. (string)
You can partially define atts array (version 2.0.22+). For example:
<?php ('This is content', 'warning', 'This is caption', array('image' => "http://www.simplelib.com/images/wp-b.png", "big" => "true")); ?>In this example the image of block was redefined as “wp-b.png” image and this one was defined as big image.
Inserting Special Text Box into Special Text Box
If you want insert one STB to another, you can use additional short code “stb“. For example:
[stextbox]Some text[stb]Some text in the indoor box[/stb][/stextbox]Special Text widget

Special Text widget. Admin Page
Download
Special Text Boxes
Highlights any portion of text as text in the colored boxes.
Author: minimus, version: 3.7.51, updated: August 29, 2010,
Requires WP version: 2.6 or higher, tested up to: 3.0.1.
Download (13 801 hits) 



(9 votes)
Tests

2. Mozilla FireFox 3.0.8 .. 3.5.2
3. Opera 10.0 alpha
4. Google Chrome 1.0.154.53
5. Apple Safari 3.1.2 .. 4.0.3
© 2009 – 2010, minimus. All rights reserved.
Popularity: 100%
Related posts:
- Special Text Boxes 4. Poll!
Operation over the new version (version 4) Wordpress of plug-in Special Text Boxes has started.... - WordPress plugin My WP Plugin Info
This plugin recieves info of any plugin from wordpress.org plugins repository. It may be useful...





Great plugin! Is there anyway to change the font-family of the caption? Thanks.
Open file /wp-content/plugins/wp-special-textboxes/css/wp-special-textboxes.css.php, go to line 165 and add font-family style …
Sent.. thanks for looking
I just discovered this plugin, and I really find it useful. I’m beginning to find all sorts of places on my sites that I can use it.
You can see it in action here:
http://sitesubscribe.com/features/addons/
I like the ‘customize on the fly’ idea, but is there a way to incorporate a custom type that I can apply a CSS style?
That would make this plugin really great.
I’ve done some CSS customization already with the existing classes and like the result, but am looking to be able to add more custom special text box types (so I can change the image for example).
I’d like to be able to do something like this, and change the styles merely using CSS:
[ stextbox id="discount" class="savings"]
[ stextbox id="external-link" class="demo"]
Thanks ,
~Jeff
MileHighTechGuy
Ok! Added to TODO List!
I love this plugin, but I’ve been unable to find a solution to a problem I’m having. How do I make boxes of different sizes? When I click on the Special Text Box icon in my WordPress menu it offers me “box width” as an option, but, no matter what or how I enter the desired width, the width defaults to the saved settings. I’ve tried defining the default margins at “0″, but that didn’t work either. I assume that since we’re offered the possibility of varying the widths that it is possible, but I can’t make that feature work. Any help would be much appreciated!
thank you!
Box width is for float mode only! Use Float mode …
Since several days, your nice plugin doesn’t work on my website : it just display text on a colapsable white box like here : http://lagazette-blog.fr/art-lettres/livres/et-dans-mes-veines-coulait-le-sang-de-mon-pere-claire-tournu-woimbee/.
Do you have some informations/solutions ?
Thanks.
Can’t open your page … Check last installed plugins for compatibility with STB …
It’s strange you can’t open the page. I found the plugin which is responsible of this bug : Simple:Press Forum
Hi. I’m having problems with images not rendering, and instead there is parts of the image code is showing on my site.
Here is an example of my shortcode:
[stextbox id="info" big="false"]
Discount automatically applied at checkout.
[/stextbox]
Here is what is showing:
sitesubscribe.com/wp-content/plugins/wp-special-textboxes/images/info.png); min-height: 20px; padding-left: 25px; “>
Discount automatically applied at checkout.
Here’s the URL where you can see it:
http://sitesubscribe.com/membership-signup/discounts/
Any ideas?
I’m going to have to disable this plugin if I can’t get this to work soon.
Thanks.
It may be too soon to tell, but it seems like deactivating and reactivating the plugin fixed the problem.
I lost my customization settings and had to re-enter them after reactivating, but so far it looks like that may have solved the issue.
I still see the problem on your site …
Maybe some of the installed plugins creates this problem. Try to test the compatibility of plugins. On my test blog your code does not create any problems …
This plugin was working great until a few days ago. I can now only see text, with no box. I have tried deactivating, then reactivating and that isn’t doing the trick. For example, the text in italics is supposed to be inside of a box: http://momspark.net/blogging-101-media-kits-one-sheets/
I can’t figure out what it is, but I noticed someone above mention Simple Press Forum, which I do have on my blog, is that the culprit?
Please check what plugins you have installed a few days ago and their compatibility with the STB!
It was the Simple Press Forum plugin. The two do not work together. Too bad because I really liked the special text boxes.
The W3C Markup Validation test more errors
CSS3 styles…
Hi. I’m trying to use the page template code. Does it allow the ‘collapse’ parameter? I tried adding it and no matter what I do the STB within the page template display as expanded…I want them collapsed by default (on page load).
thanks
Fixed!
Sorry!
When I upgraded to the latest version it seemed to create lots of problems. The box doesn’t show and the Dashboard and a number of widget control pages – for instance NextGen Gallery – disappear. These problems stopped when I deactivated Special Text Boxes. I like your plug-in but can’t seem to use it these days.
I did upgrade to 2.9.2 on WP, and upgraded a number of other plug-ins as well. My ISP informed me they a re running PHP version 5.1.6.
Jon
Read the other comments which I should have done first. I too just upgraded Simple Press forum.
I don’t know why, but the STB-plugin is not compatible with the plug Simple Press …
I use phpBB as forum on subdomain.
As of this morning I can’t seem to get the new version of STB to work on my site even after deactivating Simple Press. In fact, the whole site is seeming unstable after updating STB, WP and some other plugins. Right now I have STB deactivated. If it would help I’d be glad to reactivate it.
I’m a real fan of STB, it has a good look and worked well previously to whatever is going on now. Hope we can work this out. Thanks for your help.
I uninstalled Simple Press and the STB box plugin is still not working right (see site, upper left column) but the Dashboard is working correctly. Any suggestions most appreciated.
I tried to open the file wp-special-textboxes.css.php on your server …
Server Response: Not Found
Check all STB files on your server!
“Simple:Press” removes styles of all tags, include “div”, located in the tag “content”. Naturally, it removes the styles of “div” tag of STB plugin. As result, STB not show text’s styles.
How do i justify the text so i can centre it?
thanks
Use the tag center (HTML mode), or set the text alignment to center (Visual Editing mode).
Hi there,
I have used STB for a while now but I have noticed on all of my sites that the insert box is greyed out?
on WP 2.9.2 and 3.0 using the latest version of STB
Any ideas?
thanks
Andy
Send me screenshots to minimus AT simplelib.com
I am an idiot… you have to select then activate!!!!!
sorry sorry sorry
Don’t worry, you are not the first…
Thanks a lot minimus !!!
Your Special Text Boxes are very useful for me.
Keep up the great work !
Thanks for great plugin, and I want to tell you that it’s not working with wordpress 3.0 !
Although I could use it shortcut but admin page not exists in addition to editor button is inactive!
What’s wrong! ?
PS
I didn’t face this problem before wordpress 3.0
Just a reminder!
Just select any text to highlight it!
DOH!!!
just realised that this is my problem!! doh doh doh
hi i have been using this plugin for quite some time now. and suddenly yesterday the collapsing element stopped working in safari, i check in firefox and it still works. i have tried un install reinstall deactivated and reactivated all plugins on my wordpress, please tell me how i can fix this . my web check here http://iGyaan.in/2010/07/09/the-new-renault-dezir-charges-in-a-flash/
never mind it was just a misplaced
code oh wellTry to insert the text after the STB and see what happens … Maybe this will help…
Great plugin, I just have a question here. Since, the admin page isn’t working in WP 3.0, how do I manually enable collapse/expanded STB?
shortcode option collapsed=”true” or collapsed=”false”
Hi. Thank you for great plugin! Here is ukrainian translation for it (from our official ukrainian localization team)
http://wordpress.co.ua/download/plugins/wp-special-textboxes-uk.rar
Большое спасибо! Постараюсь опубликовать в самое ближайшее время!
Нет за что…
Решил не спамить и повторно не писать
Пы.Сы. Отправил прошлый коммент, а потом нашёл инфу, что автор русскоговорящий
This is excellent except I can’t get it to work in the sidebar widget. It works fine if on pages and in posts. I just get a box with no caption. What am I doing wrong?
Some problems with STB code… No caption… Sorry! Wait bugfix!
Thanks alot!
Sorry – my site is http://effortlessabundance.com/
Hello, This plugin works great on FireFox, Safari and IE6, however when I view it in IE7 the page doesn’t grow with the content of the Spoiler – it overlaps the content under the spoiler. Is there a fix for this bug? Thanks and here is a link to my test page; http://briantest.com.php5-18.websitetestlink.com/chloetest/specialtestplugin/
Please, insert any text after STB block. I want to see what will happen.
Hello,
Thanks for responding so quickly. I have placed some text after the STB block as you requested. The text gets pushed down but the Blog section is still overlapping. I to widen the STB Block to 550px so the text didn’t appear to the right of the STB block.
I have also noticed the style of the STB Block doesn’t display correctly in ie7. Here is the link again: http://briantest.com.php5-18.websitetestlink.com/chloetest/specialtestplugin/
I think this is a problem of compatibility jQuery with IE7
Hello, the div that resides under the STB had a setting of position: relative. I changed the div style rule to: position: static, all works fine now.
I hope this helps you and others in the future.
Thanks a lot!
I have tried to use a Special Text Box within another Special Text Box. But it dos not work! Is there a working way to do so?
Open file wp-special-textboxes.php. Find next codes (lines 73..74):
and change it as this:
Now you are add new short code. Use it as inside STB:
This codes will be added to next patch of STB.
Nesting Special Text Boxes within one another is a feature I have really wanted for a long time. This plugin rocks!
I’ll wait for the patch. Looking forward to the update.
Many thanks!
Thank you!
The plugin is great but it is not compatible with IE6 and IE7. I wish it was. Is there a way to make it compatible?
http://www.erdogdu.net/erdogdu.net/english_system_files/?page_id=5
I have been using this plug-in for quite a while because it provides a change up in the looks of the posts. I can’t understand why this has not occurred to any of the WordPress developers. None of the other text box programs are as easy to use or as effective as this one.
You can see in action at http://UofLCardGame.com
Thanks, Charlie!
The drop down arrow to the right of the box does not reside center right.. It starts out down and left a few pixels. It then shifts left @ 30 pixels for every instance of STB that I put on the page. When it hits the text in the left hand side, it then shifts all the way right and down again, only to shift left another 30 or so pixels for every instance of STB I put on the page.
Also, I am trying to figure out how I can install STB with my own color set Like the custom one, for each site I would like to use it on. Where do I find the html for setting these. Can the settings survive a plugin update? (I’m still learning CSS – not a programmer, but can find files and alter once I know what to do.)
It would be nice if you had a setup box for each type of box, with a color picker to be able to go to any browser and pick a color. As it is, I have to PrintScreen, then load photoshop, paste the clipboard and then pick and color. I could see having an original set, (as you do now) then having a way to add an instance or box item for each new custom box. I could add as many as I need of the colors I need for my sites.
Thanks,
Davekat
Bug are fixed! Wait patch 3.7.51
Looks Good in FireFox.
IE8 still a problem. Color defaults to background color with a 1 pixel stripe across, arrow still down and shifted.
I now have a font color problem
as well as IE8 problem.
Please refer to jpg’s:
http://ctwsys.com/n147I/FireFox_box_Collapsed.jpg
http://ctwsys.com/n147I/FireFox_box_show.jpg
http://ctwsys.com/n147I/IE8_box_Collapsed.jpg
http://ctwsys.com/n147I/IE8_box_show.jpg
for examples.
Here are the values I am using in the “Custom Box Editor” including the font size.
In FireFox, it looks pretty good, but in IE8 not good at all.
I should install Google Chrome and look at it…
FFFFFF
FFFFFF
0
0
8D610B
8D610B
3F3631
Thanks
Dave
Also now running patch 3.7.51 for the above examples.
basically, from what I can tell,
“
Define font color for Custom Special Text Box
This is a font color of Custom Special Text Box (Six Hex Digits).
”
stopped working. It is not taking my Hex color.
Also, back to altering the other boxes. What CSS or php file can I do this at?
More…
As you can see, I am having troubles with another plugin also called “Special Text Boxes”. I have sent this same info to them also. I am looking for a solution. thanks.
Here is a link to a site to see in real time.
http://lightyourtreasures.com/?page_id=6
Here are jpg’s of what I see in FireFox
http://lightyourtreasures.com/47in132/FireFox%20LYT.jpg
and now in Internet Explorer 8
http://lightyourtreasures.com/47in132/IE8_LYT.jpg
I have not checked Google Chrome or any of the others.
Thanks,
Dave
I meant to say “WP-Tables-Reloaded” for the other plugin.