Good morning,
I’d like to use global blocks for blog posts. For example, my latest promo’s would always use the same global block shortcode, and I would like it to appear at the end of all blog posts.
I found this code in your forums, but after adding it to my child theme’s functions.php file, it hasn’t seemed to execute.
Code I copied:
function add_global_post() {
if(is_singular(‘post’)){
echo do_shortcode(’[cs_gb id=1999]’);
}}
add_action( ‘x_before_site_end’, ‘add_global_post’, 10 );