• So I have tried to follow tutorials, but I don’t understand. I installed the plugin, I activated, but I just get this error:

    Fatal error: Call to undefined function: wp_theme_switcher() in /home/breath/public_html/test.php on line 1

    I don’t understand why I’m getting this error and I don’t know how to fix it. Can someone help me?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Sarahh

    (@sarahh)

    Anyone??

    Moderator James Huff

    (@macmanx)

    “Call to undefined function: wp_theme_switcher()” denotes that “wp_theme_switcher()” has no definition. This would only be the case if the plugin were inactive. Please make sure that the plugin is active and that you have the latest version.

    http://dev.wp-plugins.org/browser/theme-switcher/trunk/

    And, please be more patient next time. 20 minutes is child’s play around here. We’re all volunteers.

    What else is in test.php? Is it WordPress aware? (I suspect not, since the error occurs on line 1.)

    Moderator James Huff

    (@macmanx)

    Good catch, Kaf. Even if it is WordPress aware (IOW, it’s part of WordPress), try putting it inside your sidebar.php instead.

    Thread Starter Sarahh

    (@sarahh)

    Yes it is the lastest version, and it is activated in the plugins panel, so I don’t understand why its not working.

    Moderator James Huff

    (@macmanx)

    Answer Kaf’s question too, please.

    Thread Starter Sarahh

    (@sarahh)

    Theres nothing..I did what you said and put it in the sidebar file, and it worked. Now I don’t understand why it has to be in that file, for it to work.

    Thread Starter Sarahh

    (@sarahh)

    Ok, I got it to work..But now how do I make the blog show up?

    Moderator James Huff

    (@macmanx)

    Go to the index.php file in your WordPress directory.

    Thread Starter Sarahh

    (@sarahh)

    Thanks for your guys help, but nothing worked. I mean I finally got everything to show up, but when I did my pages, it wouldnt show the theme.

    I couldn’t get this plug working either. I kept getting a header error, it made ONE semisuccessful themeswitch (still “header” errors, but it showed the right theme) then it wouldn’t work again. I can’t tell you what the header error is exactly, since I had to deactivate the plug (I use the site as part of my portfolio and just bid a couple jobs- can’t have errors showing now!) I can tell you that the plug was trying to produce header stuff that was already being produced by either my theme or by WP itself, if that makes sense.

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

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