• Home
  • Contact Me
  • Forum
  • Podcast
WordPress Tavern
Where Every Drink Is On The House
Browse: Home / text

Limiting The Amount Of Text In Comments

By Jeffro on December 9, 2011

Eric Teubert over at WPEngineer has shared some Javascipt code that can be used to limit the amount of text that users can place within the comments field or any text field for that matter. Could be used to combat those comment spammers that like to post a bazillion words but the negative side is that lengthy, legitimate commentators will need to be cut short.    ∞

Posted in WordPress | Tagged comments, javascript, snippets, text | 4 Responses

Official Plugin Repository Readme File Updated

Official Plugin Repository Readme File Updated

By Jeffro on February 19, 2010

The readme file that is used by all plugin authors in order to be hosted on the plugin repository has been updated to include a new section called Upgrade Notice. This section gives plugin authors the opportunity to tell users why they should upgrade to the newest version. While a change-log provides the changes between versions, this extra addition provides the chance to go into more detail concerning those changes. One thing to keep in mind is that these messages should not be more than 300 characters.

Hat tip to Brad Williams.

Posted in Plugins | Tagged plugin, readme, text, upgrade | 1 Response

Easy Editable Text Regions

Easy Editable Text Regions

By Jeffro on September 7, 2009

diggingintowordpressChris Coyier published a great technique on the Digging Into WordPress site that explains how to create editable regions instead of text areas that are baked into the theme. For instance, ever get a theme with a block that looks like a widget but it’s really just a div container in the sidebar.php file that you manually have to edit? I know I have, a number of times, wishing it were just a text widget I could easily edit. Thankfully, the child theme I’m using for WPTavern.com is chock full of Widget areas so it’s a simple matter of creating a text widget and assigning it somewhere.

Another tidbit worth noting here is that in the example, the specific widget has a unique id number which you can assign a class too and thus, style in CSS. So in essence, you could give each text widget its own style. It would add more CSS to the themes CSS file but it might result in some cool outcomes.

Posted in Themes | Tagged regions, sidebars, text, widgets | 2 Responses

© Copyright WPTavern 2012 All rights reserved About / Stats / Poll Archive / Site Archive // Powered by WordPress Mtn. Dew And Hybrid