New Plugin: Admin Bar Theme Switcher

I was looking for a way to demo themes the other day and found that most theme switch plugins were largely out of date and didn’t work correctly with current versions of WordPress. The one that worked the best was Theme Switcher which added a widget to allow switching. The problem with this was that not all themes call their widget areas the same. Switch to a different theme and the widget disappears leaving you with no way to switch to another theme.

With the advent of the admin bar in WordPress 3.0, it seemed like a logical place to put it and it will work across all aspects of the site. This plugin adds a new drop-down called Theme Switch that gives you a list of all installed themes.

The Theme Switcher menu item allows you choose an installed theme from the dropdown.

The Theme Switcher drop down with lots of themes installed.

You can grab a copy from the WordPress plugin repo or install from Add New Plugins (Search for “admin bar theme switcher”).

Comments

  1. billseymour says

    Interesting and effective plugin, thanks much.

    I only use the Admin Bar in the dashboard, and am interested in the plugin mainly to avoid paging through the themes admin pages, rather than wanting to automatically be redirected to the newly installed theme.

    For users like me, who only want the theme to change (without being redirected), I wonder if you might consider a Setting choice, giving a user the choice of
    - automatic redirect (as is done now), or
    - a non-redirected theme change, perhaps with a notice “Theme changed to XYZ Theme”.

    The idea would be that with the non-redirect choice, one would stay on the current page (in my type of usage, staying on the current WP Admin page).

    Thanks again for the good work. –Bill

    • says

      Bill,

      Thanks for the feedback. I’ll take a look at this for next pass. I’m going to merge the codebase with the original plugin that added widgets and see how I can further improve it. Maybe move an option to the footer, etc.

      Without adding the overhead of AJAX on every page load, the page is going to have to reload when you select a theme because an action needs to be performed and feedback needs to be presented on screen.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>