Hi,
I am trying to add a header image to my single product pages. It doesn’t work in Cornerstone as there seems to be a conflict with another plugin.
I get the below error:
So then I followed the suggestion in this support topic https://theme.co/apex/forum/t/how-can-i-put-a-header-image-on-a-single-product-page/36346. I added the global block with a background image and headline. I also added the below code to my child theme’s functions.php file.
add_option( 'x_after_view_global__slider-below', 'print_product_image' );
function print_product_image(){
if(is_singular( 'product' )){
echo do_shortcode( '[my-shortcode]' );
}
}
It didn’t do anything because I’m assuming that it’s looking to place the shortcode after the slider. As I am not using a slider, what do I change this code to so that the global block sits under the masthead (navigation bar) and above the content?
Thanks!