everytime I make a change to any widgets in admin they disappear - sometime just from admin, sometimes from the frontend and sometimes both.
I get them back by adding update_option( 'sidebars_widgets', $null );
to the bottom of functions.php - then I can see them in admin as 'inactive widgets'. Then I manually re-add them all in admin - it's very frustrating!
I'm using Canvas with a custom child theme. I added a new widget area by adding
// Underhome widget area
if ( function_exists('register_sidebar') ){
register_sidebar(array(
'name' => 'Underhome widget',
'id' => 'underhome_widget',
'description' => "A widget area underneath the home page content",
'before_widget' => '<div id="underhome">',
'after_widget' => '<div class="fix"></div></div>',
'before_title' => '<h3 class="title">',
'after_title' => '</h3>',
));
}
to functions.php
Then I created a page template and added
<!-- dislay the underhome widget -->
<?php if ( dynamic_sidebar('underhome_widget') ) : endif; ?>
I can't see anything wrong with this? maybe it is unrelated?
Anyway I'm totally stuck does anyone has any suggestions apart from changing career?
return
at the beginning). Then reload and see if works. If it does, move thereturn
down by one function. Reload > Move down > and so on until you got the conflicting function. Also check yourconsole
(in the dev tool bar). – kaiser Oct 3 '13 at 2:26WP_DEBUG
deserves some care. I've made a couple of demotivators for ya ;) – brasofilo Oct 3 '13 at 5:45