WordPress.org

Forums

Removing a broken widget *Help!* (8 posts)

  1. minimal1210
    Member
    Posted 4 years ago #

    Please help, I am in danger of losing even more hair.

    I've installed the latest version of WP and finally got it up and running. I already knew of a theme I wanted to apply, so I downloaded and installed Neutica by Allan Cole. http://www.allancole.com/themes/neutica/

    While I was messing around and learning what everything did, I tried installing the Theme Switcher widget, which promptly broke, leaving absolutely no way of removing the widget from the page - the moveable box on the right hand bar in the widgets menu has disappeared.

    All I get is this error message:

    %BEG_OF_TITLE%Theme Switcher%END_OF_TITLE%

    Fatal error: Call to undefined function wp_theme_switcher() in /home/brokenre/public_html/wordpress/wp-content/themes/neutica-theme-109/neutica/functions.php on line 327

    You can see for yourself at http://www.broken-record.com

    Now... is there some way I can manually edit this out? (I cannot find any call up for it in the sidebar.php text) Even better, is there some way that I can completely reset the adjustments to the theme? I've tried re-downloading and overwriting the files on my web host, but the page still reverts back to any design changes I made. Infuriating!

    Help!

  2. minimal1210
    Member
    Posted 4 years ago #

    *Bump*

    Please help me guys and girls, I've been at this for hours and no help seems to exist!

  3. kheesiong
    Member
    Posted 4 years ago #

    Hey mininal1210

    Hope there be some aid soon, I'm in a same situation as you:

    http://www.kheesiong.com/canaryyellow

    I'll post the solution here if I can find one elsewhere...

  4. mikey1
    Member
    Posted 4 years ago #

    @minimal1210
    Hi, if you ftp to your site and delete the neutica-theme-109
    Then clear your browser cache and cookies and log back in, it should revert to your default theme.
    hope you get there.
    mike.

  5. MichaelH
    Member
    Posted 4 years ago #

    Try deleting the plugin itself--wp-content/plugins/theme_switcher_file_or_folder.

  6. mikey1
    Member
    Posted 4 years ago #

    oops, my fault, by reading your post I made the wrong assumption that theme switcher was part of your neutica theme, obviously not, its the theme switcher that needs deleting. Thanks to MichaelH for noticing.
    Mike.

  7. mikey1
    Member
    Posted 4 years ago #

    I just checked the blog of kheesiong
    Seems to be the same problem, and still looks as though the error is coming from the theme.

  8. kheesiong
    Member
    Posted 4 years ago #

    Right, I fixed mine.

    I did this by finding the 'functions.php' file from my ftp client and open it up either on dreamweaver or textedit. Now find line 317 to 336 which contains this:

    // Theme Switcher
    function widget_themeswitch($args) {
    extract($args);
    ?>
    <?php echo $before_widget; ?>
    <?php echo $before_title
    . 'Theme Switcher'
    . $after_title; ?>

    • <?php wp_theme_switcher(); ?>

    <?php echo $after_widget; ?>
    <?php
    }
    register_sidebar_widget('Theme Switcher',
    'widget_themeswitch');

    delete this and put it back where you found it. Then thats it sorted.

Topic Closed

This topic has been closed to new replies.

About this Topic