I found this thread discussing adding a global block to a single post (https://theme.co/apex/forum/t/adding-a-full-screen-image-banner-above-blog-title/36781).
Now I want to repeat that by adding a global block to the archive page like this:
add_action( 'x_after_view_global__navbar', 'x_print_section' );
function x_print_section(){
if ( is_archive() ){
echo do_shortcode( '[cs_gb id=569]' );
}
}
For some reason it doesn’t work. Any idea what I’m doing wrong here?
Thank you.