Forum Replies Created

Viewing 2 replies - 76 through 77 (of 77 total)
  • Thread Starter brook1979

    (@brook1979)

    Hi Buhle78,

    Thanks for your help, i have this now in my fucntions.php file and it has removed the default widget areas which is great, however i am still left with some that have been installed via a plugin, example:
    Plugin: “simple image widget” this is still showing up in my widgets section. This is what i got upto now… As you can see the bottom one i added is for the simple widget, but it still showing up in the widgets area..

    Any idea on how to remove widgets that have been installed via the plugin?

    Cheers again for the help, much appreciated after hours of searching…

    add_action(‘widgets_init’, ‘remove_widgets’, 20);
    function remove_widgets() {

    // Remove these WordPress widgets:
    unregister_widget(‘WP_Widget_Pages’);
    unregister_widget(‘WP_Widget_Calendar’);
    unregister_widget(‘WP_Widget_Archives’);
    unregister_widget(‘WP_Widget_Links’);
    unregister_widget(‘WP_Widget_Meta’);
    unregister_widget(‘WP_Widget_Search’);
    unregister_widget(‘WP_Widget_Booking’);
    unregister_widget(‘WP_Widget_Categories’);
    unregister_widget(‘WP_Widget_Recent_Posts’);
    unregister_widget(‘WP_Widget_Recent_Comments’);
    unregister_widget(‘WP_Widget_RSS’);
    unregister_widget(‘WP_Widget_Tag_Cloud’);
    unregister_widget(‘WP_Nav_Menu_Widget’);
    unregister_widget(‘WP_Widget_widget_simpleimage’);

    Thread Starter brook1979

    (@brook1979)

    Cancel that i found them….Cheers

Viewing 2 replies - 76 through 77 (of 77 total)