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:

  1. Upload the whole simple-select-all-textbox folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to the options page to adjust the width of all text boxes made using this shortcode.

Screenshots:

Options menu

Download

Categories: Wordpress Plugins


5 Comments on “Simple Select All Text Box – WordPress Plugin” Comments RSS Feed

  1. thanks dude! I just looking for this plugin, thanks

  2. Jeff Hester says:

    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?

  3. Hi.. thx for the sharingg..
    i will use it for sure
    -chandra ekajaya

Trackbacks/Pingbacks

Leave a Reply