I’m trying to place a global block below the nav on all woocommerce pages and I pulled some code from a previous thread, altered it, and placed it in the functions.php file. Nothing seems to have happened. I double checked my global block shortcode but past that point I can’t figure out what is wrong with it. A the very least I would like it on shop, category pages, and single product pages. Can you help?
function shop_header() {
if ( is_woocommerce() ) : ?>
<div class="x-header-shop">
<?php echo do_shortcode('[cs_gb id=536]'); ?>
</div>
<?php endif;
}
add_action('x_after_masthead_end','shop_header', 30);