Displaying too much
-
Hey guys!
I am working on a site and I wanted to make sure that people could easily change the header/hero image. Therefor I wrote a tiny bit of PHP in my HTML.
<div class="hero-sdc" style="background-image: url( <?php the_post_thumbnail('full'); ?> );">I can see and edit the picture so that is working. The only problem is that I can see some code/text on the picture. It is the part after I am closing the PHP tag that is shown to me.
Does anyone know how to fix this?
EDIT:
I thought that the image was showing up, in fact it does not! Can anyone help me getting this fixed and right?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Displaying too much’ is closed to new replies.