• c0y0te

    (@c0y0te)


    Hi there,

    I’ve installed the theme switcher plugin to help switch between themes on my site, using the basic code so that it does a drop down:-

    • <h2><?php _e(‘Switch Theme’); ?></h2>
      <?php get_theme_switcher(‘form’); ?>
    • Problem is – the box displays perfectly, the drop down works and allows selction of a theme, but then the theme doesn’t display, it just remains on the current theme. I’ve checked the options within WP1.5 and it sees all themes, and it sees the plugin as ACTIVE, so I’m stumped.

      Any suggestions? What have I done wrong? Where should I look? Thanks in advance for any help.

Viewing 15 replies - 1 through 15 (of 26 total)
  • Thread Starter c0y0te

    (@c0y0te)

    Has anyone got some ideas for me here?

    I noticed that even though I select a different theme, the screen refreshes but it still has the default theme (as in the one which was active at the time)

    For reference my blog site is https://www.avalon5.com/blog

    Any help you can offer would be greatly appreciated. Thanks in advance.

    c0y0te

    moshu

    (@moshu)

    Well, in the plugin says so:
    To use, add the following to your sidebar menu:

    <li>Themes:
    <?php wp_theme_switcher(); ?>
    </li>

    This will create a list of themes for your readers to select.

    If you would like a dropdown box rather than a list, add this:

    <li>Themes:
    <?php wp_theme_switcher('dropdown'); ?>
    </li>

    */

    puckrat

    (@puckrat)

    I’m having the same issue, having installed this plug-in last night. If I figure out the cause and hopefully fix, I’ll let you know too. :0}`
    https://blog.puckrat.com

    Using IIS? You’ll need a header workaround similar to this one.

    puckrat

    (@puckrat)

    Unfortunately, I’ve already made that particular adjustment as I was not able to log in successfully after install. {sigh} :0}`

    Thread Starter c0y0te

    (@c0y0te)

    Me too. I applied the fix for the login/logout issue and it work ed fine, but my theme switcher plugin still refuses to work as advertised.

    Anyone else got suggestions on this? I really like the look of the dropdown theme box so I’d hate to have to ditch it because it doesn’t work.

    I’m just adding a “me too” here, since I’m having the same problem. Theme Switcher function shows up fine on the main page, just doesn’t switch the theme – page refreshes, looking exactly the same. No trouble with headers, as some other people on other threads have experienced. Code in the Sidebar template looks like this:

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

    • <h2>Themes:
      <?php wp_theme_switcher(‘dropdown’); ?>
    • (And unfortunately, after having looked at some of the above-listed people’s blogs, I note that theme switcher is not included on either of them. :-/ I hope they didn’t have to give up because they never got an answer.)

      My kingdom for an answer! ??

    Set your browser to allow cookies? How about a link to test it?

    How about a link to test it?

    You got it: https://www.tracyberna.com/wp/ Many thanks for jumping in! ??

    And my browser is set to allow cookies, btw.

    Beel? Did you have any other ideas as to why my Theme Switcher stubbornly refuses to switch themes? The mere fact of its refusal to work just irks me on principle. :-/

    BTW, for the reference of anyone else who sees this post, when I went to check out the header workaround page referenced in this thread, it said that the fixes it mentioned would be included in WP 1.5.1, and I have 1.5.1.2, so I figured I already had them. Besides, I have no problem with the headers.

    How about some other people on this thread – C0y0te? Puckrat? Beuller?

    I have an idea as to the “why” but not the “fix” – apparently the cookie is not being set ??

    I have an idea as to the “why” but not the “fix” – apparently the cookie is not being set ??

    Beel: I’m PHP-illiterate, so maybe you can at least answer whether or not this is a valid concern – The WP Codex says: ‘ Check that any plugin tags or usage within your template files are […] placed in the appropriate place, i.e., within the WordPress Loop or outside of it.

    I didn’t actually place the code w/in the Sidebar Template – just activating it seemed to do it automatically – but I wouldn’t know if it was placed in the right place or not. I’ve just got it as one of those nested ‘

    • ‘s, like all the other sidebar items. Is there anything I should know about where it ought to go that might affect the cookies?

    Oops. The omitted part of that previous post said “list items.” (They said to put code between backticks! I thought that would keep it visible. Live and learn.)

    tracy, backticks as used in this particular instance are on the key with the tilde, just above the tab key on most windows keyboards (mac users’ mileage may vary….)

    Placing this:
    <li>Themes:
    <?php wp_theme_switcher(); ?>
    </li>

    in the sidebar should be all that is required. I don’t actually use the plugin, but I did read the file. Somebody who “knows” cookies and PHP will hopefully chime in.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Theme Switcher Plugin’ is closed to new replies.