• I have create a site which uses a lot of sidebars to create different pages on the frontend. The problem is now every-time I want to edit a sidebar all the sidebars load, and their widgets. You can imagine it take very long amount of time.

    I have managed to change the page so non essential sidebars don’t get rendered, but when I save now the sidebars get sent as empty strings, which then detach the widgets from the hidden sidebars.

    Can anyone help or advise in the matter?

Viewing 1 replies (of 1 total)
  • Thread Starter amar.parmar6

    (@amarparmar6)

    Ok found how to do this, basically had to override the ajax widget order hook using the following code:

    add_action(‘wp_ajax_widgets-order’, ‘my_ajax_widgets_order’, 0);

    and then write my own code to do the sidebar update. Simples!!!

Viewing 1 replies (of 1 total)
  • The topic ‘Widgets page how to stop page from loading all the sidebars’ is closed to new replies.