[wd_asp elements=’search’ ratio=’100%’ id=1]

Show a different image on each page depending on page name

18th June 2013

Wordpress - Show

wordpress category

Can be used in a template

.about-banner {background-image: url(http://example.co.uk/mysite/wp-content/themes/mysite2013/img/".$pagecomp.");}

";

And using a more relative way
.about-banner {background-image: url('/wp-content/themes/codehaven/img/".$pagecomp."'); height:297px; padding:20px;}

";
?>