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)

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 :
- Intro : well, here.
- Overview : a quick tour about features and how easy things are.
- Manual : detailed features and how-to
- Download ! : files and credits.
- 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 #5Metastuff
145 Blablas
Pages: « 1 2 3 4 5 6 [7] 8 » Show All
Pages: « 1 2 3 4 5 6 [7] 8 » Show All
pingback on 20/Aug/07 at 4:49 am # :
[...] Theme ToolKit [...]
wrote, on 04/Sep/07 at 5:27 am # :
Hi,
how do you avoid conflicts with themes that already have options? I get the dreaded headers already sent with the WP-Andreas09 2.1 theme because it has the color options and reloads the same page with an & option.
thanks,
nada
wrote, on 04/Sep/07 at 9:32 pm # :
ladydana » don’t know this theme in particular, but it depends how theme authors implement menus. You should discuss this with the theme author.
commented, on 22/Nov/07 at 4:42 am # :
Hi, I’ve tried to create other theme sub-menus to break down the options for “Theme Config,” “Menu Config” & “Ads Config” (by saving the themetoolkit.php as menutoolkit.php & creating a new themetoolkit function as menutoolkit function, etc…).
Anyway, I have successfully create the 3 theme sub-menus (Theme Configuration, Ads Configuration & Menu Configuration). However, every time I tried to save a configuration for one of the configurations, the other two default options becomes “empty,” thus messing up the theme.
Anyway, was wondering if you can give some pointer on how to “Save Options” for one and not delete the other options.
~The SEO Blogger~
P.S. I’m still digging the themetoolkit =P. I just want to take it to another level (by having separate/organize/short/no-scroll theme config menus for my SEO theme =).
…Of course, i can take the easy way out and have the user of my theme fill in all the 100+ options in one lonngggg sroll before “Save Options” (I’m using it for the whole style.php, so you get how long that is !)…
Anyway, please send me an email (with the answer ;) if you have some time.
Thank you.
thought, on 22/Nov/07 at 5:06 am # :
Hmn… I’m thinking it’s the plugination & deplugination functions… Well, I’m not a php programmer so…
Anyway, I did create an adstoolkit.php & ads-functions.php (for the Ads Configuration menu layout), a menutoolkit.php & menu-functions.php (for Menu Config options page) and, of course, themetoolkit.php & functions.php (for general Theme Config options).
Add these lines into the respective __-toolkit.php file to create the theme sub-menu pages:
1. add_theme_page(’Configure Ads’, /*$this->infos['theme_name']*/’Ads Configurations’, ‘edit_themes’, ‘ads-functions.php’, array(&$this,’admin_menu’));
2. add_theme_page(’Configure Theme’, /*$this->infos['theme_name']*/’Theme Configurations’, ‘edit_themes’, ‘functions.php’, array(&$this,’admin_menu’));
3. add_theme_page(’Configure Menu’, /*$this->infos['theme_name']*/’Menu Configurations’, ‘edit_themes’, ‘menu-functions.php’, array(&$this,’admin_menu’));
I also changed every instant of the themetoolkit() function to the respective functions:
1. adstoolkit()
3. menutoolkit()
*Also, I add the
if(function_exists(’themetoolkit’) themetoolkit (
‘mytheme’,
array(
*so when I don’t have the themetoolkit.php installed, it doesn’t throw the error.
Anyway, I hope I’ve asked good enough questions and given you enough information (so you can help =)…
Thanks again for the themetoolkit ;)…
~The SEO Blogger~
a.k.a WorldWiseWebDesign(er).com
–as the result of the themetoolkit!
pingback on 03/Dec/07 at 4:14 pm # :
[...] Theme ToolKit [...]
commented, on 02/Mar/08 at 2:33 am # :
Hi Ozh! I have a doubt, in your example (asides) How can I get the name of the category? is for reuse in another loop.
I hope you can help me.
Regards ^^
said, on 02/Mar/08 at 11:07 am # :
Infected » Sorry, I dont get the question
thought, on 03/Mar/08 at 11:45 am # :
Ozh Hello again, thank you for responding, for example in the "panel" user writes category "Asides" How could I get that value the user typed to use for example:
Thank you again :)
thought, on 03/Mar/08 at 10:33 pm # :
Infected » Well, it's just as explained in this page: use something like $mytheme->option['asides']
replied, on 11/Mar/08 at 2:04 pm # :
Oh! thank you Ozh!! You're right.
:$ Sorry, I had not seen ^^
pingback on 12/Apr/08 at 9:02 am # :
[...] ???????????——Wordpress Theme Toolkit ? Unnamed 0.4.1?Wordpress Theme Toolkit ??? WordPress ?? Ozh ???????? WordPress ????????????Ozh ???????????WordPress?????????????????????????????????????????????????????????????? Unnamed 0.4 ???????????? WordPress 2.3-Alpha ?????? Theme Toolkit ?????? [...]
thought, on 13/May/08 at 10:58 am # :
thank
pingback on 14/May/08 at 11:59 am # :
[...] Theme ToolKit [...]
pingback on 14/May/08 at 11:59 am # :
[...] Theme ToolKit [...]
pingback on 24/May/08 at 1:36 am # :
[...] WordPress Theme Toolkit « planetOzh [...]
pingback on 29/May/08 at 9:22 am # :
[...] Theme ToolKit [...]
pingback on 29/May/08 at 9:23 am # :
[...] Theme ToolKit [...]
pingback on 02/Jun/08 at 2:59 am # :
[...] Theme ToolKit [...]
pingback on 12/Jun/08 at 4:38 am # :
[...] Theme ToolKit [...]