Cheatsheet: Wordpress plugin admin page bling!

Just Posted: Apple Likely to Give Education Rather than Resolution for iPhone 4 Antenna Issues

As a Wordpress plugin developer, it’s important that you also create a great UI for your backend administration pages just as well as for your front-end. Wordpress 2.7 comes with a really nicely designed administrative section, and the likelihood is you will be adding to this with your custom built plugins. Trouble is, you probably cannot be bothered to go to the effort to make it look pretty, so it ends up looking a bit naff and out of place.

The Cheatsheet

Below I have listed a nice little cheatsheet which will enable you to tag on to the existing WordPress CSS .classes for some key form elements so that your plugin admin pages fit in rather nicely!

Admin-Submit-Primary
<input type="submit" name="save" class="button-primary" value="Save Changes"/>
picture-4
<input type="submit" value="Apply" class="button-secondary action" />

The form elements below must be placed within a table structure, specifically: <table class=”form-table”>

Input Box - Normal
<input type="text" name="inputbox" class="regular-text" />
picture-3
<input name="whatever" type="text" id="blah" class="regular-text code" />

Brief I know, but adding these small changes will really make your admin page fit in seemlessly with the rest of the new 2.7 UI.

More importantly…

It will also enable you to have your form elements auto-update with any UI update WordPress implement in the future (as long as they keep the .class names the same of course!).

Further Reading…

WordPress For Dummies

WordPress For Dummies

WordPress Complete

WordPress Complete

WordPress Plugin Development

WordPress Plugin Development

3 Responses to “Cheatsheet: Wordpress plugin admin page bling!”

  1. Daniel Davis says:

    RSS Feeds are really very helpful and you could get site and news updates from it..::

  2. I wanted to thank you for this fantastic read undoubtedly enjoying every and every very little bit of it and I have bookmarked to check out new stuff you post.

Trackbacks/Pingbacks

  1. [...] platform seems to cause. But Now I’m Drawing My Line in The Sand I thought it would be a neat Cheatsheet: Wordpress plugin admin page bling! – reynoldsftw.com 01/22/2009 As a Wordpress plugin developer, it’s important that you also create [...]

Leave a Reply