WordPress.org

Ready to get started?Download WordPress

Forums

[help] about the wp-style-switcher (6 posts)

  1. rubyip
    Member
    Posted 9 years ago #

    i installed the plugin[v1.5] into my wordpress. i followed the steps provided by alexking. but it didn't work....

    i copyed the wp-style-switcher.php into the plugin directory , copy the wp-style dir into the root dir and activate it in admin menu.

    i modified 2 parts of index.php as follows..

    <style type="text/css" media="screen">
    @import url(<?php wp_stylesheet(); ?>);
    </style>

    <?php wp_style_switcher(); ?>

    After modification, nothing can be displayed for the index.php...
    i viewed the source code.

    The error is that......
    <style type="text/css" media="screen">
    @import url(
    <b>Fatal error</b>: Call to undefined function wp_stylesheet() in <b>E:\web\wordpress\index.php</b> on line <b>15</b>

    it seems that the plugin can be not activated..could anyone help me?

  2. Beel
    Member
    Posted 9 years ago #

    I am using both Alex's style switcher and Ryan's theme switcher. In my setup if one wants to use the style switcher they have to switch to the Classic Theme where I enabled the style switcher. I have been away for a month and my memory ain't what it used to be, but you can get it to work. Perhaps we should start by focusing on enabling the plugin?

  3. blacknyx
    Member
    Posted 9 years ago #

    Hey Beel,
    Yeah I have the theme switcher in my plugins and its activated but I can't figure out exactly where I should place it.
    And it seems as though 1.5 isn't much a fan of the style switcher either, I put in @import url( <?php wp_stylesheet(); ?> );
    It'll probably take me quite some time of tinkering. Someone should put together a tutorial for that, that'd be awesome. Maybe if i figure it out, I'll do that, but it'll take me some time to get it right.

  4. blacknyx
    Member
    Posted 9 years ago #

    Well good news and bad news for me.
    I got the theme chooser working on my site, nobody can view the problem except me
    But I have these errors at the top of all of my admin page

    Warning: Cannot modify header information - headers already sent by (output started at /home/blacknyx/public_html/wp/wp-content/plugins/theme-switcher.php:147) in /home/blacknyx/public_html/wp/wp-admin/admin.php on line 7

    Warning: Cannot modify header information - headers already sent by (output started at /home/blacknyx/public_html/wp/wp-content/plugins/theme-switcher.php:147) in /home/blacknyx/public_html/wp/wp-admin/admin.php on line 8

    Warning: Cannot modify header information - headers already sent by (output started at /home/blacknyx/public_html/wp/wp-content/plugins/theme-switcher.php:147) in /home/blacknyx/public_html/wp/wp-admin/admin.php on line 9

    Warning: Cannot modify header information - headers already sent by (output started at /home/blacknyx/public_html/wp/wp-content/plugins/theme-switcher.php:147) in /home/blacknyx/public_html/wp/wp-admin/admin.php on line 10

    this one shall take awhile to figure out.

  5. Mark (podz)
    Support Maven
    Posted 9 years ago #

    /plugins/theme-switcher.php:147

    Start there, on that line of that file.
    Probably whitespace after the last ?>

  6. blacknyx
    Member
    Posted 9 years ago #

    pods Thank you!!!
    I want to understand how to troubleshoot better.
    How did you know the problem was in .php:147??
    Since it told me in the error that it was a problem with admin.php, that doesn't necessarily mean thats where the real problem is then?

    How did you figure out .php:147? If you don't mind my asking for a quick explaination. that is.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.