Simple Select All Text Box – WordPress Plugin
November 4th, 2009
Here’s another simple WordPress plugin I came up with. I was trying to figure out an easy way to create a text box for some song lyrics which, once clicked, selected everything inside so anyone could easily copy and past the contents. Well, once I figured out how to make it I figured I would make it easier for others who want to do the same thing. Hence, Simple Select All Text box was born.
Basically with a simple shortcode in a post or a page you can have your very own one click, select all text box. Here’s how it works:
- To create a text box in a post or a page use this shortcode: [textbox rows="3"]Contents of text box[/textbox] You can obviously change the amount of rows to your liking. If rows aren’t specified it will default to 5 rows.
- To create a text box in the sidebar, header, footer, etc. use this template tag:
< ?php simple_select_textbox('# OF ROWS','WIDTH IN PX','BOX CONTENT') ?>
Installation:
- Upload the whole simple-select-all-textbox folder to the /wp-content/plugins/ directory.
- Activate the plugin through the Plugins menu in WordPress.
- Go to the options page to adjust the width of all text boxes made using this shortcode.
Screenshots:

Categories: Wordpress Plugins
Listen to My Music
Sketchup
thanks dude! I just looking for this plugin, thanks
This is great!
I’m having one small problem with this. I’m trying to create a snippet of BBcode in one of the boxes, but instead of blank lines, I’m getting and codes added (not valid BBcode).
You can see this in action on this page: http://socalhiker.net/2010/04/hiking-the-roller-coast-ridge/
The html tags are not in my editor, but when I save the page, WordPress is adding them. Any suggestions?
I was able to workaround the problem by removing all line breaks and adding the [br][br] BBcode instead. Not really a solution, just a workaround.
Hi.. thx for the sharingg..
i will use it for sure
-chandra ekajaya