Remove Ephemera widget (2 posts)

  1. Mrmark
    Posted 5 years ago #

    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.

    	// added to remove ephemera widget
    function unregister_problem_widgets() {
    unregister_widget( 'Twenty_Eleven_Ephemera_Widget' );
  2. John_6x6
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic