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
149 Blablas
Pages: « 1 2 3 4 [5] 6 7 8 » Show All
Pages: « 1 2 3 4 [5] 6 7 8 » Show All
thought, on 04/Jul/06 at 1:02 pm # :
hey i am designing a theme and i wanted a query like this to be generated.. in a function called mytheme_asides()
// query_posts(’category_name=”asides”&showposts=4′);
how do i do it.. i want “asides” to be replaced by $mytheme->options['asides'] and 4 to be replaced by $mytheme->options['asides_num']..
please help me out..
said, on 31/Jul/06 at 8:53 am # :
Great job merci beaucoup
sympa knorr ;-)
wrote, on 22/Sep/06 at 7:42 am # :
crystal.
nice work dude ;)
replied, on 20/Oct/06 at 6:34 am # :
Thank you so much. I am no expert with php and the toolkit has give me loads of options to edit my own blog. This is such a great tool and thank you again!
thought, on 24/Oct/06 at 10:59 pm # :
Ozh , thanks for tool, great idea. downloaded and installed, but must test in my testblog :)
replied, on 25/Oct/06 at 12:42 am # :
Bonjour,
j’ai juste rajouté ces quelques lignes dans la fonction print :
case ’select’:
print $matches[1].”\n”;
print “”;
while ($items) {
$v=array_shift($items);
$t=array_shift($items);
$selected=”;
if ($v == $this->option[$key]) $selected=’ selected’;
print “$t\n”;
}
print “”;
break;
et ca marche !!!!!!!!
pingback on 30/Oct/06 at 6:22 pm # :
[...] The sidebar is fixed (static), but the header and content-area are fluid to accommodate different sized screens/browsers. I included the WordPress Theme Toolkit by Ozh for user-friendliness. For style and functionality I have included some plugins: jspullquotes by Viper007Bond (for the cute magazine-style pullquotes), Sociable by Peter Harkins (adds Social Bookmarking links to the end of each post), Live Comment Preview by Jeff Minard and Iacovos Constantinou, Optimal Title by Aaron Schaefer (reverses order of post-title/blog-title for SEO/Search friendliness) and Related Posts by By Alexander Malov & Mike Lu (lists related posts at the end of each post). [...]
pingback on 30/Oct/06 at 6:50 pm # :
[...] Here is a newsletter-style 2-column with sidebar theme for WordPress which allows some control over which categories are displayed in each column. I included the WordPress Theme Toolkit by Ozh for user-friendliness. This theme is a modified version of Corporate Slave, by dreamLogic . [...]
pingback on 06/Nov/06 at 9:07 am # :
[...] Now distributed with multiple colors schemes - blue, pink, green, brown, red, and orange - controlled via the Theme Presentations tab thanks to the WordPress Theme Toolkit. [...]
pingback on 07/Nov/06 at 8:25 am # :
[...] Usamos Wordpress Theme Toolkit [...]
pingback on 15/Nov/06 at 1:15 am # :
[...] Cada segundo que paso online significa incorporar un nuevo conocimiento: desde la lectura del diario ni bien me levanto, hasta aprender a usar el wordpress theme toolkit para ponerselos a mis themes. Desde leer las principales tres revistas medicas todos los dÃas hasta la verdadera historia de Jean y Dark Phoenix. [...]
thought, on 03/Dec/06 at 11:54 pm # :
I use your toolkit in my CMS theme. Thanks for creating and sharing this nice tool. A suggestion: it would be nice to be able to add a dropdown list based in a query in the options.
pingback on 10/Dec/06 at 7:50 am # :
[...] Now distributed with multiple colors schemes - blue, pink, green, brown, red, and orange - controlled via the Theme Presentations tab thanks to the WordPress Theme Toolkit. [...]
replied, on 28/Dec/06 at 4:20 pm # :
Hi, i’m new using this great featured for themes, but i have a question in the implementation for this.
I am trying to use conditional for the functions, if they exist that they are and but that they show another thing, but me it does not respect it.
For example i have a function call inphecthyuz_codeone in my theme put this
< ? php if (function_exists('inphecthyuz_codeone')) : ? >
< p >< ? php inphecthyuz_codeone(); ? > < /p >
< ? php else : ? >
< h2 >the other thing here
< ? php endif; ? >
any idea? :( pls!!
Thank you!! :) and greetings.
said, on 28/Dec/06 at 6:52 pm # :
To use it with WPmu (Worpress-Multiuser), as $wp_version=’wordpress-mu-1.0′ , drop WP 2.0 (and 1.0) specific code, assuming that current version of WPmu is based upon WP-2.0
wrote, on 28/Dec/06 at 7:52 pm # :
InfectedFX » your PHP code is correct. The thing is, function_exists is sometimes a bit touchy : at compilation time, PHP sometimes doesn’t know if the function will exists or not. This can typically happen when your function_exists test is enclosed in another test, or a class.
However, there is no reason why a function you’re defining in your theme would not exist. So I’m not sure you really need this test :)
said, on 05/Jan/07 at 11:09 am # :
The more code that is added the slower everything will start to run though correct or am I wrong? Is it a noticable shift in performance?
thought, on 06/Jan/07 at 12:36 am # :
MF » take a look at how many thousands of lines of code are run in WP every time a page is loaded. Adding a single 40 line class and 20 lines of functions code is… nothing :)
said, on 14/Jan/07 at 2:51 am # :
Sehr gut!
thought, on 19/Jan/07 at 3:04 pm # :
Toyed with getting a option type for dropdown menus. Here’s what I came up with - still testing it:
case ‘dropdown’:
print $matches[1].”\n”;
print “”;
while ($items) {
$v=array_shift($items);
$t=array_shift($items);
$checked=”;
if ($v == $this->option[$key]) $checked=’selected’;
print ” $t”;
if (@$items) print “\n”;
}
print “”;
print “”;
break;