OK, so I browsed around and found a thread pointing a “ThemeSwitcher” plugin. I’ve downloaded it and copied the code into a text widget in my sidebar but I just see the word “theme” and no list or drop-down. Any thoughts?
Sorry, I also added the code to my sidebar.php file. Here’s how it looks;
backticks
<div id=”sidebar”>
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar() ) : ?>
<?php if (function_exists(‘wp_theme_switcher’)) { ?>
<div class=”boxed”>
<h2 class=”title”>Themes</h2>
<?php wp_theme_switcher(‘dropdown’); ?>
</div>
<?php } ?>
<?php wp_list_cats(‘sort_column=name&hierarchical=0’); ?>
<h2 class=”title”>Calendar</h2><span class=”calendar”>
<div align=”center”><?php get_calendar(1); ?></div></span>
<h2 class=”title”>Last Posts</h2>
<?php wp_get_archives(‘type=postbypost&limit=20’); ?>
<h2 class=”title”><?php _e(‘Blogroll’); ?></h2>
<?php get_links(-1, ‘
- ‘, ‘
‘, ”, FALSE, ‘name’, FALSE, FALSE, -1, FALSE); ?>
</div>
<?php endif; ?>
</div>
backticks
You first need to read how to install a plugin – because the way they work is you upload the plugin to your plugins folder via FTP, then go into your dashboard and activate the plugin. You don’t throw some code into your PHP files. That’s why you don’t get anything from the “theme switcher” link.
On the other hand – if I understand that plugin – it only allows visitors to select a theme they like from among those you have installed. I don’t think it is intended for the purpose you want to put it – although it will give you the option to change your theme while online.
The code you have in the sidebar:
<?php wp_theme_switcher('dropdown'); ?>
Should allow a user to select from all the themes you have installed, but like @saurus said, you have to activate the plugin. Also, you will need to place that code in the sidebar of all your themes…otherwise your users will have to keep using the browser back button to get to your default so they can change to another one.
You can see it in action on my site at the link below…look near the top of the sidebar. The only difference is, since I don’t have many themes installed, I’m not using a dropdown menu.
http://educhalk.org/blog/