I can't save widget. When I click save, I can see wait circle, and nothing happend. When I visit again widgets section, it's empty.
Then I changed view to Accessibility Mode, and still no luck.
Then I've changed id
in functions, because that's the place where I create my widgets, and all those widgets I've tried to add before were in inactive widgets, but still can't save any.
Also theme doesn't show anythyng.
What can I do to make it work?
UPDATE
// add widgets
function iu_widgets_init() {
register_sidebar(array(
'name' => __('disp name', 'dev'),
'id' => 'footerBoxOne',
'description' => __('disp desc', 'dev'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h4><span class="title">',
'after_title' => '</span></h4>',
));
register_sidebar(array(
'name' => __('disp name', 'dev'),
'id' => 'footerBoxTwo',
'description' => __('disp desc', 'dev'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h4><span class="title">',
'after_title' => '</span></h4>',
));
register_sidebar(array(
'name' => __('disp name', 'dev'),
'id' => 'footerBoxThree',
'description' => __('disp desc', 'dev'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h4><span class="title">',
'after_title' => '</span></h4>',
));
register_sidebar(array(
'name' => __('disp name', 'dev'),
'id' => 'footerBoxFour',
'description' => __('disp desc', 'dev'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h4><span class="title">',
'after_title' => '</span></h4>',
));
}
add_action('widgets_init', 'iu_widgets_init');
of course dev
is my theme slug. Could that be a problem?
debug.log
file ) and you've turned off all plugins then the next step it to actually show your code. Tell us what each function does, what you expect to happen, where the code is saved, etc. Otherwise all possible answers will be guesswork.footerBoxOne
tofooter-box-1
for all four widgets, and it's working now. Maybe uppercase chars were the problem