Hello, here you helped me to add a global block to a single post page. How to add one to the blog page? It is not set as frontpage.
thank you!
Hi There,
Please try adding the following code:
function add_global_blog_post() {
if( is_home() ){
echo do_shortcode('[yourshortcode]');
}}
add_action( 'x_before_the_content_begin', 'add_global_blog_post', 10 );
Hope it helps
Perfect! Thank you!
You are most welcome.
1 Like
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.