• I’ve installed the theme-switcher and it switches themes fine, but I’ve also used php includes to switch themes for the rest of my site (non-WP pages), and although the other WP pages switch themes fine, my ‘normal’ pages don’t. I would say it’s a cookies problem, but I seem to remember a few other people telling me that the same thing was happening… https://blossom.nu/wp – any help would be much appreciated ??

Viewing 15 replies - 1 through 15 (of 23 total)
  • It’s kind of simple actually. The cookie currently sets the path to /wp, so the changes will only affect that exact url. Change the path to ‘/’ if you want it to affect the entire web site and it’s pages.

    Thread Starter jenni_kitten

    (@jenni_kitten)

    Thanks so much!
    But..erm..whereabouts do I change the path to ‘/’ ? In the admin panel or in the header and footer..?

    Thread Starter jenni_kitten

    (@jenni_kitten)

    Anybody?

    Kitten, FYI – bumping is a no-no and may cause deletion of your thread. I am not responding because you bumped, but because it was on my “to-do” list to check the plugin code when I had the time. I was posting back when I noticed the “bump”

    If you look at the plugin code I suspect what cridan is referring to is the “COOKIEPATH” in the function to set the cookie. You could try to change it from that to ‘/’ (single quotes included) and try that – remember to delete your cookies before testing it. Not being familiar with cookies, I could be all cookie dough.

    Thread Starter jenni_kitten

    (@jenni_kitten)

    Hmm, I was informed that you could bump after 24 hours with no replies :/
    Unfortunately I am not psychic and have no idea what people’s to do lists are, as you are probably well aware ??

    setcookie('wp_ts_'. $cookiehash, $ts_theme, time() + 777000, $cookiepath);

    ^ I have no idea what to change there. That’s one of the 3-4 lines relating to cookies, that are all pretty much the same.

    https://www.php.net/manual/en/function.setcookie.php

    The 5th item is the domain, so that’d be $cookiepath. Replace it with 'star-girl.org' and it should work (I’d think).

    Thread Starter jenni_kitten

    (@jenni_kitten)

    Thanks for the suggestion, but I replaced it with blossom.nu, and it still doesn’t work. Maybe it’s a setting in the WP admin panel I need to change?

    I must be looking at a different theme switcher. Do you have a link to the one you are using?

    Thread Starter jenni_kitten

    (@jenni_kitten)

    It’s a French one. It was here: https://386a.net/blog/wordpress/theme-switcher but it seems to have disappeared… This still works though https://386a.net/blog/
    Maybe I should try a different one?

    Thread Starter jenni_kitten

    (@jenni_kitten)

    See, this is why bumping is necessary ??

    I tried the links from the previous posts, but afraid I can’t help:
    https://386a.net/blog/wordpress/theme-switcher – still 404 not found
    https://386a.net/blog/ – can’t see a theme switcher list or drop down to try.
    https://blossom.nu/wp – theme switcher is visible but non-functioning.
    Where are you at with this now?

    Thread Starter jenni_kitten

    (@jenni_kitten)

    In the same place…installed plugin but switching the theme doesn’t work for non-wp pages.

    Thread Starter jenni_kitten

    (@jenni_kitten)

    Hm okay, I’m going to search for another similar plugin if no one has any ideas…thanks everyone so far though!

    Thread Starter jenni_kitten

    (@jenni_kitten)

    Can’t find any..what’s the most common one? I googled, but all I was the URL to the one I downloaded orginally *sigh*

    I couldn’t determine if you found the French theme switcher. If you didn’t, I have it. I can email it to you, if you like.

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