Hi Geoff,
There is already code in the functions file. If I place it below that code, so below the closing ?> tag this happens: https://prntscr.com/6lj8m5
If I place it before the closing ?> the website is fine, but the eventspage is white. That’s also the case if I place the code after the opening tag at the top.
This is the existing code:
<?php
register_nav_menu( 'footer', __( 'FooterMenu', 'zeeflow_language' ) );
if ( ! function_exists( 'themezee_register_sidebars' ) ):
function themezee_register_sidebars() {
// Register Sidebars
register_sidebar( array(
'name' => __( 'Main Sidebar', 'zeeFlow_language' ),
'id' => 'sidebar-main',
'description' => __( 'Appears on posts and also pages (in case Sidebar Pages has no widgets) except frontpage/fullwidth template.', 'zeeFlow_language' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widgettitle">',
'after_title' => '</h3>',
));
register_sidebar( array(
'name' => __( 'Sidebar Pages', 'zeeFlow_language' ),
'id' => 'sidebar-pages',
'description' => __( 'Appears on static pages only. Leave this widget area empty to use Main Sidebar on pages.', 'zeeFlow_language' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widgettitle">',
'after_title' => '</h3>',
));
register_sidebar( array(
'name' => __( 'tekstbov', 'zeeFlow_language' ),
'id' => 'tekstbov',
'description' => __( 'tekstboven', 'zeeFlow_language' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widgettitle">',
'after_title' => '</h3>',
));
}
endif;
?>