I had something in my functions.php of my old theme “Divi”, that added a widget named “Single Post Sidebar” after the main content.
function wpc_et_widgets_init() {
register_sidebar( array(
'name' => esc_html__( 'Single Post Sidebar', 'Divi' ),
'id' => 'sidebar-6',
'before_widget' => '<div id="%1$s" class="wpc-widget et_pb_widget %2$s">',
'after_widget' => '</div> <!-- end .et_pb_widget -->',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
) );
}
add_action( 'widgets_init', 'wpc_et_widgets_init' );
How can I do that in GeneratePress?
Thanks,
Edin