• Resolved kahloesque

    (@kahloesque)


    I am having the worst time with the Theme Switcher plug in and can’t for the life of me figure out what I’m doing wrong. All of the templates work individually but god forbid you try to switch between them in a template. I’m new to WordPress (just installed it on my domain the 11th) and any help you could provide would be greatly appreciated.

Viewing 15 replies - 1 through 15 (of 30 total)
  • Try putting this in your sidebar.php

    <?php if (function_exists(‘wp_theme_switcher’)) { ?>

    • <?php _e(‘Themes’); ?>
      <?php wp_theme_switcher(); ?>
    • <?php } ?>

      Make sure you back up your current copy incase it doesn’t work, but that’s what I have working on my retrospotive theme. πŸ™‚

    And you have to put that code in the sidebar of every theme!

    Thread Starter kahloesque

    (@kahloesque)

    Hi, this is the error that’s coming up where the code is in the Orange Sky template (currently the default on my website): Fatal error: Call to undefined function php_e()

    Thread Starter kahloesque

    (@kahloesque)

    And I’m still not able to pull up the Blix template from the Orange Sky or vice versa. So I’m still wondering what I am doing wrong.

    oh… ummm do you have the Theme Switcher installed?
    If so, with that you have to check off all the themes you want to display so that your readers can change to their theme of choice.

    I’m not sure if that’s what you mean.

    Oh… i see what you mean.
    You get a 404 message when you try to switch themes.
    yikes, that I don’t know how to fix. I’m sorry.
    Hopefully someone who reads this will know.
    Maybe try re-installing the theme switcher?
    :-S

    Thread Starter kahloesque

    (@kahloesque)

    I’m not even sure what you mean. I have got theme switcher installed and activated. What do you mean “check off” perhaps I’ve missed something (it wouldn’t be the first time!)

    Thread Starter kahloesque

    (@kahloesque)

    I’m not even sure what I mean. Sorry, I’m on my laptop and the keys keep sticking. I’ll try reinstalling the theme switcher and see how that goes. And then I’ll be back.

    Thread Starter kahloesque

    (@kahloesque)

    Okay, I reinstalled, but still no luck. Any ideas?

    When I say “Check off” I mean, you should see “Style Switcher” under your “Presentation” tab. Next to “Theme Editor”. Last time I had a 404 error like yours, I had to contact my webhost. Apparently, something I did under my webhost control panel caused my links to get a 404 error like yours. I guess whatever I did cause my htaccess file to get screwed up.
    It could be something with your htaccess file.

    Don’t know what else to tell ya, I’m sorry.
    πŸ™
    I hope someone can help you cause I know I get so antsy when my blog’s not running right.

    check meaning “select” the themes you want to be displayed. LOL

    Thread Starter kahloesque

    (@kahloesque)

    Okay, LaBella, I sure hope you’re still around on here, *sigh* I am not seeing “Style Switcher” okay, that’s probably the problem in a nutshell. So, the question is: should I reinstall… again?

    If you’re getting the call to undefinded function, you need to double check that you’ve inserted the function call (as posted by LaBella above) into the sidebar of all your themes, and that it’s all there, not missing a closing > or something. I don’t know that reinstalling the plugin file will help, since if you haven’t got the code right it won’t matter if the plugin is activated, it just won’t work.

    Thread Starter kahloesque

    (@kahloesque)

    I have got the code right, I copy & pasted straight from LaNella’s post. My problem is she says there should a “Style Switcher” in “Presentation” which I don’t have. And I installed the plugin direct from an earlier posting of mine. So I am altogether confused.

    Well, it maybe depends on which plugin you’re using. If it’s Ryan Boren’s theme_switcher.php file, there won’t be anything in the admin section other than the entry in Plugins. All you do is activate it and make sure each theme has the following code in the sidebar:
    <li id="themes">
    <h2><br /><br /><?php _e('Themes'); ?></h2>
    <?php if (function_exists('wp_theme_switcher')) { ?> <?php wp_theme_switcher('dropdown'); ?>
    <?php } ?>
    </li>

    If you’re using a different theme switcher, I can’t help you with it. Ryan’s is the only one I’ve ever used; simplicity itself and works perfectly.

Viewing 15 replies - 1 through 15 (of 30 total)

The topic ‘Theme Switcher’ is closed to new replies.