What do you mean by
you also need to correct the function name at the top of the code.
Right now I have (with the php at the top)
// Register new sidebars
function customsidebars() {
register_sidebar(array(
'name' => 'PagesSidebar_HR',
'description' => esc_html__('A widget area, used as a sidebar for the Page Template HR.', 'udesign'),
'before_widget' => '<div id="%1$s" class="widget %2$s substitute_widget_class">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgettitle">',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'PagesSidebar_IT',
'description' => esc_html__('A widget area, used as a sidebar for the Page Template IT.', 'udesign'),
'before_widget' => '<div id="%1$s" class="widget %2$s substitute_widget_class">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgettitle">',
'after_title' => '</h3>',
));
}
add_action( 'widgets_init', 'customsidebars', 15 );
It doesnt crash, but does not properly register the sidebars. Am I missing something?