If you’re a WordPress theme author of multiple themes, then you’ll probably want a more efficient way of handling “live demos” than setting up a brand new WordPress installation on each. I personally use the theme switcher plugin on my live demo site. What this plugin will allow you to do is set up a link to preview a theme installed in your wp-content/themes/ folder, whether it’s the active theme or not. This plugin also has a function which will make a dropdown list of all the themes installed on your blog, providing links to preview each theme.

Subscribe to RSS

By: Leland on Aug. 11

Bookmark and Share

15 Comments »

Comment by ArtHack
2008-08-11 19:23:49

This plug-in is pretty good, there are no other plug-in is the theme of the show?

 
Comment by Leland
2008-08-11 19:25:08

@ArtHack: I think there are a couple other plugins to preview themes. This one, however, leaves a cookie so people can preview all pages of the theme. This one might also be worth taking a look at as well: http://boren.nu/archives/2005/03/08/preview-theme-plugin/

Comment by ArtHack
2008-08-12 08:55:12

Thanks

 
Comment by ArtHack
2008-08-12 09:27:45

However, this can not use plug-in Wordpress2.6

 
 
Comment by mayooresan Subscribed to comments via email
2008-08-12 05:38:20

Oh man! thank you very much.. This is wot i’m looking for!!!
Long time back I wrote a Wordpress theme and was wondering how to incorporate all the themes in one WP installation……

Thanks alot :)

 
Comment by Leland
2008-08-12 09:40:50

@ArtHack: Are you sure? The theme switcher plugin works fine for me on 2.6.

@mayooresan: No problem, glad this post was useful to you.

 
Comment by Jonathan Subscribed to comments via email
2008-10-13 15:57:48

Thank you! Just getting into the Theme game and needed to know how to do this. Question: does this plugin allow you to direct link a theme as well?

Thanks in advance,

Jonathan

 
Comment by Leland
2008-10-16 12:07:20

@Jonathan: Yep, it sure does. You can set up links like example.com/?wptheme=Your+Theme+Name+Here

Comment by Jonathan Subscribed to comments via email
2008-10-16 14:06:39

It caused a fatal error in a 2.6.2 WP install:

Fatal error: Cannot redeclare ts_set_theme_cookie() (previously declared in /homepages/16/d261329322/htdocs/wp-content/plugins/theme-switcher-reloaded/theme-switcher-reloaded.php:28) in /homepages/16/d261329322/htdocs/wp-content/plugins/theme-switcher.php on line 30

 
 
Comment by Jonathan Subscribed to comments via email
2008-10-16 14:08:16

nevermind, just having a “duh” moment… thanks again!

 
Comment by Jonathan Subscribed to comments via email
2008-10-16 14:11:02

Got it loaded but just reloads the current theme. I used the http://www.mydomain.com/?wptheme=classic (which is installed) and it just refreshed the page…

I must be missing something!

 
Comment by Leland
2008-10-16 14:14:11

@Johnathan: I think it’s case sensitive. Try with example.com/?wptheme=Classic

 
Comment by Jonathan Subscribed to comments via email
2008-10-16 14:17:58

Nope….. could it be the latest WP update kills the plugin?

 
Comment by Leland
2008-10-16 14:20:28

@Johnaton: Don’t think so. I use it myself with WordPress 2.6.2 on the Demo Server.

I think I know the problem is though. Try example.com/?wptheme=WordPress+Classic

Since that’s the full name of the theme.

 
Comment by Jonathan Subscribed to comments via email
2008-10-16 14:24:37

You rock! Mind if I add your feed to my site?

 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post

Recent Comments

  • ThemeLib.com: Where are you Leland?
  • Aguair: Not posting?
  • RevolucionPC: Good review, THXs 4 that !
  • John: @ Richard: I tried that, cleared the cache and still didn’t see it - until I restarted the browser....
  • Richard Lovison: John, Go into the Wordpress dashboard and navigate to Design, Widgets. From there you should be able...

About The Author

Welcome to Theme Lab. My name is Leland, and I run the place. I write all the tutorials and code all the themes you see here on the site.

For more information about me, feel free to read the about page. If you want to drop me a message, feel free to contact me.

Interested in advertising on Theme Lab? We have advertising available at very reasonable rates. Head on over to the advertising page for further details.

Please read our Privacy Policy and Terms of Service in regards to theme usage.

© 2008 - Theme Lab - Powered by WordPress