Title: Theme switcher plugin breaks theme editor
Last modified: August 18, 2016

---

# Theme switcher plugin breaks theme editor

 *  Resolved [Starkmann](https://wordpress.org/support/users/starkmann/)
 * (@starkmann)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/theme-switcher-plugin-breaks-theme-editor/)
 * I didn’t know if this should go in plugins or troubleshooting.
    I downloaded 
   Theme Switcher based on some other conversations here at wp.org. As long as I
   have the theme switcher turned on: [http://wp-plugins.net/index.php?filter=theme+switcher&filter_search=Go&#8230](http://wp-plugins.net/index.php?filter=theme+switcher&filter_search=Go&#8230);
   I seem to be unable to edit any theme from within the Admin area, when I click
   on the sidebar or other file, it bounces me out to the front page of my blog.
   If I put the bit of code in the sidebar that needs to be there for the theme 
   editor then turn the editor on from within the admin area, the plugin works, 
   it’s just that I can’t edit other themes. So anytime I found a new theme to throw
   in. I would have to turn it off, edit the editor window into the theme, then 
   turn it on.
 * So, the questions:
    Am I doing something obviously wrong? Does someone have this
   plugin who is not having this issue? Is there a way to add the dropdown window
   into the overall template that would stay in place no matter what theme you go
   to?
 * Thanks very much.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/theme-switcher-plugin-breaks-theme-editor/#post-459218)
 * Starting from the end…
    _Is there a way to add the dropdown window into the overall
   template that would stay in place no matter what theme you go to?_
 * No, there isn’t.
 * Which theme switcher? I’ve seen more than one…
 * (I never edit template files in the online editor – as other mortals, I tend 
   to forget to change the permissions back, leaving the whole install wide open
   for any hacker idiot)
 *  Thread Starter [Starkmann](https://wordpress.org/support/users/starkmann/)
 * (@starkmann)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/theme-switcher-plugin-breaks-theme-editor/#post-459240)
 * mm, good point on permission. I may have to rethink that bit. In the mean time,
   I’m using the top theme switcher from the link in my post. It is claimed to be
   authored by one Mr. Peer. I tried to look into the file for a bit more clarification
   but all I get is that it comes froma 386a.net. If you know of one that works 
   and well, I’d be more than happy to cash this one in for another.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/theme-switcher-plugin-breaks-theme-editor/#post-459248)
 * I know about this one:
    [http://dev.wp-plugins.org/wiki/ThemeSwitcher](http://dev.wp-plugins.org/wiki/ThemeSwitcher)
   but I didn’t use it for a long time. Try it. This one is by Ryan Boren.
 *  Thread Starter [Starkmann](https://wordpress.org/support/users/starkmann/)
 * (@starkmann)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/theme-switcher-plugin-breaks-theme-editor/#post-459270)
 * I have downloaded it, I will get back to you.
 * EDIT: interesting results so far. It works, but displays all thethemes in my 
   libray. In th event I turn it offbut don’t comment out the code, it stops the
   background image on my page. It’ll be usable after I have cleaned up my thme 
   library.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/theme-switcher-plugin-breaks-theme-editor/#post-459292)
 * 1. That’s the idea: it displays all the existing tehems and visitors can pick
   one. Due to the cookies your blog will remember what was the selected theme for
   ABC user and it will show your blog “dressed” like that.
    2. Use this little 
   code always for plugin tags – so that in case of deactivating they don’t break
   your blog: `<?php if (function_exists('wp_theme_switcher')) { ?> <li><h2><?php
   _e('Themes'); ?></h2> <?php wp_theme_switcher(); ?> </li> <?php } ?>
 * or whatever is appropiate for your design. The main thing is the first and last
   line!
 *  Thread Starter [Starkmann](https://wordpress.org/support/users/starkmann/)
 * (@starkmann)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/theme-switcher-plugin-breaks-theme-editor/#post-459374)
 * Thanks for the bit of code. I will add that.
    The reason I thought it was odd
   that it showed them all was because the first plugin I was using actually had
   a nice little feature that allowed me to select which themes were viewable. So
   if I had, for example, a black and white version of the same theme but wanted
   to add a grey one. I could add it to my theme library, work it over a bit. Then
   add it to the drop down. I may play around with some different theme selectors
   out there.
 * Thanks again for the code though, that will be very useful

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Theme switcher plugin breaks theme editor’ is closed to new replies.

 * 6 replies
 * 2 participants
 * Last reply from: [Starkmann](https://wordpress.org/support/users/starkmann/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/theme-switcher-plugin-breaks-theme-editor/#post-459374)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
