Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #590077

    Hi Folks

    I tried this work through in post https://kriesi.at/support/topic/custom-banner-image-on-enfold-woocommerce-product-pages/#post-560025. To bring a background image in on the product pages. on http://medievilnutrition.com.

    It didn’t work for me so I deactivated and deleted the custom functions plugin and this:-

    add_action('ava_after_main_container', 'add_banner_before_breadcrumb'); 
    function add_banner_before_breadcrumb() {
    	if ( is_product() )
    	{
    		echo '<h1 style="text-align: center;"><a href="http://www.yourwebsite.com" target="_blank">
    <img border="0" alt="Banner Name" src="http://www.yourwebsite.com/wp-content/uploads/shop-banner-image.jpg" /></h1>';
    	}
    }

    Now I am left with this line of code visible at the top of the site and am at a loss where it is and how to get rid of it (it also seems to be slowing the site down – can you help?

    Thanks

    Steve

    #591303

    Hey Steven,

    Sorry for the late reply. Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Thanks,
    Rikard

    #591446

    Hi Rikard

    Thanks for getting back – I have sorted the problem – someone pasted the css in the Google Analytics Tracking Code panel instead of custom css panel
    The result was that the css appeared printed above the site.

    Cheers

    Steve

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘custom background for woo commerce product pages’ is closed to new replies.