Unregister widget with child theme

Theme support is offered to verified customers by forum only. Support requests and solutions made by email, Skype, Envato or any other method will be redirected back to the forum.

This topic is: not resolved
  • In Progress
    Posted in: Fundingpress  
  • Member
    mpn-evanto13
    October 27, 2014 at 10:19 am #51598

    Hello,
    I would like to unregister the PopularWidget with the functions.php of my child-theme and then insert my own that is based on the widget.

    I currently have these lines of code in my functions.php:

    function remove_last_projects_widget() {
    	unregister_widget( 'PopularWidget' );
    };
    add_action( 'widgets_init' , 'remove_last_projects_widget' );

    This however does nothing.
    It is the right class name, as far as I know.
    Any help would be appreciated.

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.