Hide Themes When Using Theme Switcher Plugin

Allowing your visitors to select a particular theme when viewing your blog is a cool feature. I'm unsure how popular it is as I have never used the option on sites that offer it but it's a neat feature nevertheless. So now you've decided you want to offer your visitors that functionality. You visit the WordPress plugin directory, find some theme switcher plugin and set it up on your blog. All looks great until you notice the Default and Classic themes appear on the list of available themes to use. What if you don't want those themes to be included in the list? What if there is some other theme you don't want included in that list for whatever reason?

The solution is simple. Add the line Status: NotPublic to the style sheet of the theme you don't want listed. A good place to add it is right after the line that reads Author: Using the Default theme as an example, this is what the start of the style sheet should now look like ...


Theme Name: WordPress Default
Theme URI: http://wordpress.org/
Description: The default WordPress theme based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>.
Version: 1.6
Author: Michael Heilemann
Status: NotPublic
Author URI: http://binarybonsai.com/
Tags: blue, custom header, fixed width, two columns, widgets

To reverse it just delete that line.

About the author
Len has been blogging for over 10 years and is a rabid WordPress fan. In addition to blogging here you can find him writing the occasional article and toiling away in the forums at WeblogToolsCollection.com. He also hangs out at the WordPress support forums lending a hand where he can. You can also find him at his other blog LenKutchma.com

Leave a Reply

CommentLuv Enabled