I'm using Headway Theme (builder) and I've got static pages for products. On top of page is a wrapper that I'd like to use the featured image as background.
Everything I've read is that I need to use
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
and in my css apply to that wrapper the following:
background-image: url('<?php echo $thumb['0'];?>')
The problem I guess is that I am not applying php at the good place. I have inserted it in the functions.php, is it where it is supposed to be? I've read that it should go in The Loop, but can't find anything like this...