Ive read through some of the other topics but i couldnt find a solution that worked. But someway the the url shows up as http:="" mysite.com="" wp-content="" uploads="" 2015="" 08="" matchups-1.png")
This is the code I'm using. How do I prevent it from adding the extra "" and spaces?
<div style="background-image: url("<?php echo $bgimage; ?>"); background-position:cover;"></div>
I've tried to code like this, but this didnt work:
<div style="background-image: url(\'<?php echo $bgimage; ?>\'); background-position:cover;"></div>
as some answers suggested but still I'm either doing something wrong or it doesn't work. Can anyone tell me a solution? thanks.