On: 2005/09/03 Viewed: 250383 times

In every Wordpress theme there are places that are supposed to be edited and customized by the end user who is using the theme : an “About you” block to fill in, a loop to customize when you want to add “Asides” post style, some CSS to tweak to use an personal image in header, etc…

The problem is : most bloggers are not PHP or HTML expert, can’t tell the difference between an HTML tag and a PHP tag, and simple editing of templates can be hazardous and tedious to them. Adding an admin menu in your theme ensures that end users can customize things without editing source files, just as naturally as changing a Wordpress option in the admin area.

Wordpress Theme Toolkit is a PHP class that gives Wordpress theme authors the opportunity of creating a persistent admin menu for their theme as easily as editing 3 lines in a file.

You are a theme author ? Have enough skills to edit three lines ? Add an admin menu to your theme ! (click to enlarge)
Theme Toolkit : admin menu example

Just to be sure : Wordpress Theme Toolkit is not a theme with an admin menu. It is something that makes adding an admin menu to an existing theme as easy as 1-2-3.

This long article is divided in shorter sections :

  1. Intro : well, here.
  2. Overview : a quick tour about features and how easy things are.
  3. Manual : detailed features and how-to
  4. Download ! : files and credits.
  5. Ideas and Examples : suggestions and ideas of what you could add to your theme … and a real Wordpress Theme as an example of use.

Related posts

Page: #1 #2 #3 #4 #5

Metastuff

This page "Wordpress Theme Toolkit" was posted on 03/09/2005 at 2:36 pm
Watch this discussion : Comments RSS 2.0. You can trackback this post from your own site

159 Blablas

    Pages: « 1 2 3 [4] 5 6 7 8 » Show All

  1. 61
    WordPress Theme Toolkit allows users and... United States »
    pingback on 09/Mar/06 at 12:55 am # :

    [...] Just found out that Ozh has created a WordPress Theme Toolkit which, upon editing three lines of code in any existing theme, will provide Theme Authors with an admin menu accessible through the WordPress Presentation UI.  Very cool stuff — all would-be wordpress theme authors should check it out!  Same goes for those of you dabbling in modifying existing themes.  Nice work Ozh! Filed under blogging, Weblogs, WordPress, Templates, Themes, wordpress theme toolkit by Emily from How to Blog. Permalink • Print • Email [...]

  2. 62
    Adri Italy »
    thought, on 09/Mar/06 at 8:23 pm # :

    Fantastic tool with excellent documentations!

  3. 63
    Fauna | Fauna Beta 4 Denmark »
    pingback on 12/Mar/06 at 3:57 pm # :

    [...] Ozh added “default options” to his themetoolkit That means Fauna now populates the options page with the default options. This makes it easier for you to see what’ll happen when you change those options. [...]

  4. 64
    jimy Russia »
    commented, on 14/Mar/06 at 12:04 am # :

    Cool cool tool! Thank u! I am going to try it for my themes (:

  5. 65
    | Ehrlich gesagt… Europe »
    pingback on 14/Mar/06 at 7:58 am # :

    [...] Fixes: » Moved all font css to fauna-default.css » Wrote some instructions in the top of fauna-default.css » Added an option to specify a custom stylesheet. This might make it easier to upgrade to future versions of Fauna. » Dropped category RSS meta link, since the code wasn’t 2.0 compatible » Due to incredible work by Ozh on his Themetoolkit (http://planetozh.com/blog//my-projects/wordpress-theme-toolkit-admin-menu/), checkboxes now function properly. Ozh has actually made a workaround to a bug in Wordpress itself. Send him a thank you note. » Removed a superfluous DIV from page.php and page-archives.php (Thanks Levi) » Added a few HTML comments in some of the templates, including search.php (Thanks Levi) » Fixed a problem in template-postloop.php where uncommenting the_author_link wouldn’t work (Thanks Sadish) » Fixed a problem in template-sidenote.php where it said “1 Comments” (Thanks Sadish) » Had to add class “post” to template-sidenote.php and template-postloop.php in order to fix an overflow problem » Added some default values to the options page. This means the default configuration for Fauna is now actually shown in the options page, rather than the options being empty as they have been so far » Changed noteworthy heart font to Lucida Console, because it looks really good in that font. » Moved an .entry-date border style from style.css to fauna-default.css » Moved a yellow inputfield focus class to fauna-default.css (Thanks Levi) » Fixed a nasty bug where sites with more than one author would have author pages with errors on them (Thanks a lot, Levi) » Made consistent vertical spacing in UL lists in the sidebar (Thanks Simplex) » Did some tweaks to the header width / height options so you can change the header of the all mastheads, not just custom ones » Added option to change background image and color » Removed the searchbox background. I’ve been pondering this for ages. While it did serve the purpose of connecting above with below, visually, I think it looks a bit better without. Your thoughts? » Due to popular demand, I added another special category: Sidenotes. To do this, I renamed the previous “Sidenotes” category to “Asides”. Now it works like this: “Asides” or “Dailies” are small posts in the main post-list, while “Sidenotes” are relegated to the sidebar. For those of you who are using a “Sidenotes” category for your small posts in the main post-list and don’t want those relegated to the sidebar, simply go “Manage > Categories”, and in the “Category slug” for your Sidenotes category, type in “asides” or “dailies”. Then you’ll keep your behaviour. –> [...]

  6. 66
    jsekera United States »
    replied, on 15/Mar/06 at 4:44 pm # :

    Wow this is a fantastic tool – well done.

    I have an oddness that’s happening on the back end, and I wanted to run it by you. When I have an item that uses a checkbox, more often than not when I toggle that element (within the admin interface) it doesn’t take the first time, in fact sometimes they take three times to actually register. The other items (radio & text box) don’t seem to have this problem. Am I doing something stupid here, is there a caching issue with this element, or is there something else at work?

    Also – do you have any plans to add dropdown’s to the list of available elements?

    - Thank you - JS

  7. 67
    Blogzor United States »
    thought, on 16/Mar/06 at 8:05 am # :

    Is it possible to add a way that the size of the textbox could be configured? Something like {10,20} size/max. It does not look like their is any sanitizing done on the user input. Could this be vulnerable to xss attacks? Thanks for this great tool.

  8. 68
    flipstah.blog » Blog Archive &raqu... United States »
    pingback on 20/Mar/06 at 1:00 pm # :

    [...] The work of Ozh, specifically the WordPress Theme Toolkit has helped theme developers come up with interesting ways to manage sidebars, may they be horizontal or vertical. Kyle Neath used the same toolkit when he made the Hemingway theme. [...]

  9. 69
    Ron United States »
    wrote, on 02/Apr/06 at 6:59 pm # :

    Hi, I istalled the ‘Tiga’ theme and it includes your plug-in. It is installed on WP1.5.1.3.Everything is installed as per instructions. Repeatedly. The problem is that this warning appears;

    Fatal error: Call to undefined function: add_theme_page() in /home/ronpembe/public_html/wp-content/themes/tiga/themetoolkit.php on line 84

    I am still a newbie to PHP; which I only started learning a year ago. Could you please tell me what this could be?

    Thanks in advance

    Ron

  10. 70
    hadi farnoud Iran »
    said, on 09/Apr/06 at 8:27 pm # :

    i’ve got this error when use minimalistic theme,
    Fatal error: Call to undefined function add_theme_page() in /home/users/farnoud/wp-content/themes/minimal/themetoolkit.php on line 84

  11. 71
    » Blog Archive » WordPress T... United States »
    pingback on 14/Apr/06 at 5:37 am # :

    [...] WordPress Theme Toolkit [...]

  12. 72
    Scott United States »
    said, on 24/Apr/06 at 6:29 pm # :

    I’ve just rereleased two of my themes and a new theme all of which use the WordPress Theme Toolkit. I’m not a coder nor a designer by any means, but I found this tool very, very useful and pretty easy to get a grasp on and use effectively. Well done.

    plaintxt.org » Themes

  13. 73
    felipe.lavin Chile »
    replied, on 14/May/06 at 6:42 am # :

    Excellent work!

    I have a question: how can I pass some variable through the “texturize” filter?

    For instance, I’ve created an “About” textarea, but I would like that the contents of that textarea could be “texturized”, to add paragraphs and breaks. Is this posible?

  14. 74
    Ozh France »
    thought, on 14/May/06 at 9:40 am # :

    Felipe » well instead of echo($stuff) you just echo wptexturize($stuff) …

  15. 75
    felipe.lavin Chile »
    commented, on 14/May/06 at 11:19 am # :

    Thanks!

    Actually, what I was looking for was wpautop($stuff); that’s the filter that manages paragraphs and breaks… just in case anyone was wondering :P

    Once again, great work!

  16. 76
    Scott United States »
    replied, on 31/May/06 at 5:55 pm # :

    Hey Ozh: I’ve had a lot of luck with the toolkit—awesome. I am, however, going nuts trying to figure something out with my limited PHP/MySQL knowledge.

    I have a home.php with two layouts. Depending on a checkbox in theme options, one is used with a specific post/page, like a CMS. I’ve made the two layouts, but I can’t figure out how to make an option for a page slug to be entered and then placed in the query_posts('pagename=X‘).

    I would greatly appreciate any help.

    Thanks.

    scott

  17. 77
    Scott United States »
    wrote, on 01/Jun/06 at 5:44 pm # :

    Ozh rocked my query from above. Thanks, Ozh. The WP Theme Toolkit has made my themes better. No! it has made my themes actually usable. Thanks for this.

  18. 78
    Ozh France »
    commented, on 01/Jun/06 at 8:59 pm # :

    Scott » you’re welcome :) keep releasing neat themes !

  19. 79
    felipe.lavin Chile »
    replied, on 14/Jun/06 at 4:58 am # :

    Hi, it’s me again… I just wanted to know if there is any license protecting your work… the thing it’s I’m thinking of release a theme with a GPL license, but that license shouldn’t include your work, would it? So… what kind of license should be stated as protecting the theme toolkit?

  20. 80
    Ozh France »
    said, on 14/Jun/06 at 8:08 am # :

    Felipe » GPL is fine. To be honest, I don’t even care about this. I always have the feeling that whenever you release some code, well, it’s more or less getting public domain. The only thing that I care about is that whenever a theme author releases a new theme using the toolkit, I’m notified (trackback, link, mail) about it. That makes my day :)

Pages: « 1 2 3 [4] 5 6 7 8 » Show All

Leave a Reply

Comment Guidelines or Die

  • HTML: You can use these tags: <a href=""> <em> <i> <b> <strong> <blockquote>
  • Posting code: Post raw code (no <> &lt; etc) within appropriate tags : [php][/php], [css][/css], [html][/html], [js][/js], [sql][/sql], [xml][/xml], or generic [code][code]
  • Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar.
  • Spam: Various spam plugins on patrol. I'll put pins in a Voodoo doll if you spam me.
  • I will mark as Spam test comments, all comments with SEO names (ie "My Cool Online Shop" instead of "Joe") or containing forum-like signatures.

Close
E-mail It