WordPress.org

Forums

Theme Switcher Question (6 posts)

  1. Michael Bishop

    Posted 10 years ago #

    I know I've read of a way of doing it, but can't quite seem to find it now, but if I want to test a new design on a live blog using the Theme Switcher plugin (the Mr. Peer version via Alex King), what do I need to add to the end of my URI to load the theme.
    To be clear, I don't wish to make the theme available to the generally reading public by including the call, just myself. I tried adding ?wptheme=themename, but that didn't work. And I did choose the theme in the options panel for the plugin.
    Thanks.

  2. Beel
    Member
    Posted 10 years ago #

    <?php if ($user_level == 10) { ?>
    <?php if (function_exists("wp_theme_switcher")) { ?>
    Themes
    <?php wp_theme_switcher(); ?>
    <?php } ?>

    <?php } ?>

  3. Michael Bishop

    Posted 10 years ago #

    No offense Beel, but you didn't read my post. I know how to put the code into a template, which is not what I want. I know I've read that you can manually type in an address to load the site with another theme. That is what I'm looking for.

  4. Beel
    Member
    Posted 10 years ago #

    No offense mikib, I did read your post but this is a more intelligent solution. It only shows the theme switcher when the admin is logged in and you don't have to type the index.php?wptheme=Whatever+theme+you+are+testing each time (nor have to remember the full names). I use this on all the sites on which I work.

  5. Michael Bishop

    Posted 10 years ago #

    So by your rationale, if I asked where to get a glass of water, you would give me a glass of orange juice and tell me it's a more intelligent beverage?

    The theme I'm currently using, there's not a convienient location for a theme switcher call. Nor did I wish to hard code it into the new theme, as I have no desire to offer it in the future, and I'm looking at over all design, space usage.
    And for the record,
    I'm not getting anything to work with ?wptheme=new+theme.

  6. Michael Bishop

    Posted 10 years ago #

    I switched to Ryan's theme switcher, and ?wptheme=theme+name worked.

Topic Closed

This topic has been closed to new replies.

About this Topic