Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Drag those inactive widgets(not used) to the inactive widgets.

    Thanks,
    Anusha.

    Thread Starter darkpollo

    (@darkpollo)

    Yeah, that could work, but the problem is that there is around 300 widgets and the page is really slow.
    So move one by one to the bottom is not an option.

    Any code that can clean, or transform the widgets from the inactive sidebar into the inactive area?

    Thanks

    Thread Starter darkpollo

    (@darkpollo)

    hi,
    I know you are trying to help, but you are linking to the same solution I posted on the first post, which works for inactive widgets but not for inactive sidebars.

    For further information, this code does not work:

    $widgets = get_option('sidebars_widgets');
    $widgets['wp_inactive_widgets'] = array();
    update_option('sidebars_widgets', $widgets);

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove inactive sidebars?’ is closed to new replies.