WordPress.org

Support

Support » Plugins and Hacks » Remove Ephemera widget

Remove Ephemera widget

  • After some mucking about, I figured out how to remove the Ephemera widget (obligatory on showcase template pages). I’m no php expert, but in my child theme I created a functions.php document then added this function to it. It overrides the parent theme by unregistering the ephemera widget *after* it’s been registered.

    Since the widget_init() function assigns no priority number (default=10, higher numbers come later), I added a priority of 11 – putting it after registration occurs.

    <?php
    	// added to remove ephemera widget
    function unregister_problem_widgets() {
    unregister_widget( 'Twenty_Eleven_Ephemera_Widget' );
    }
    add_action('widgets_init','unregister_problem_widgets',11);
    ?>
Viewing 1 replies (of 1 total)
  • Thanks a bunch for this fix. I assume it should be a bug fixed in the next update or two. I also noticed after doing a WP upgrade from 3.2 to 3.2.1 it appeared again on the sidebar. I deleted it this time instead of dragging it out and it stayed away. I then made the mistake of adding it again to the sidebar and couldn’t get rid of it again – until your fix.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove Ephemera widget’ is closed to new replies.