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)
Viewing 1 replies (of 1 total)
- The topic ‘Remove Ephemera widget’ is closed to new replies.