Creating a ‘Drop In’ Ready Theme
Since the goal of the competition is to create a big collection of drop-in ready themes for WordPress 1.5, I amended the rule below regarding the theme switcher tag. Please use the additional code listed here so that the themes work even when the theme switcher is not installed.
Here is an example of how this would be implemented into the sidebar.php page of the default (Kubrick) theme:
<?php if (function_exists('wp_theme_switcher')) { ?>
<li><h2><?php _e('Themes'); ?></h2>
<?php wp_theme_switcher(); ?>
</li>
<?php } ?>
I’ve updated all of the theme downloads to use this code. All new submissions must use this technique.
March 2nd, 2005 at 12:10 am
This is sort of like a CSS Zen Garden for WordPress. Very nice! I have been looking for a collection of examples of WP 1.5 themes all in one place. Your contest is making that happen. I hope you will keep the repository of these themes online after the contest ends.
March 2nd, 2005 at 1:12 am
That’s the idea, just like the collection of styles from the last contest.
March 4th, 2005 at 7:09 pm
I am curious about the imperative to include the theme switcher code. I have no objection to doing so, just curious about why it would be important? Is it just so it will easily display here?
March 4th, 2005 at 7:12 pm
Yes, and so that people can easily use each theme with the theme switcher if they like. People really seem to love theme/style switchers.
March 7th, 2005 at 11:09 am
Alex, I don’t have a sidebar - I’m not a coder, nor a designer, so I’m not sure where the code would drop in. Could you advise? The theme is valid xhtml/css and has the GPL licesne included, I just lack the drop in switcher. Please advise.
site is: http://meadow.sekhu.net
March 7th, 2005 at 12:56 pm
I suggest asking for help in the WordPress forums, this is a little outside the scope of what can be handled in blog comments.
March 16th, 2005 at 8:06 pm
dang it. showing code doesnt work in the comments. shoulda known better.
What if I only entered the snippet shown on the Themes Competition Rules Page?
Would that pass go?
March 16th, 2005 at 8:13 pm
There are currently 48 examples you can download to see how to do it.
March 16th, 2005 at 8:46 pm
well… viewing the source doesn’t show me the php set up. which is why i asked.
nevermind. I’ll just use the snippet on the rules page, inside a li tag, and hope it passes.
March 16th, 2005 at 8:48 pm
Right, so why don’t you download them and look at the source?
March 16th, 2005 at 9:38 pm
heh. boy do i feel sheepish.