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.
To create a text box in a post or a page use this shortcode:
[textbox rows="3"]Contents of text box[/textbox]
Options are as follows:
rowsNumber of text rows. This will determine the height of the text box. (optional)
widthWidth of the text box in pixels. (optional)
codeWhen set to true the content of the text box will not be escaped. Useful for including code snippets. (optional)
classSpecifies a custom class to use on the text box. Useful for styling. (optional)
- 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.