Calling medium sized thumbnail
-
Hello all,
The template I’m using normally used the first image in the post as cover image on the front page. I however did not wanted to insert a image 2 times in each post (once as featured image and one in the text) so I changed the template a little to use the featured image as image above the post and on the homepage.
I’m using the code below to call the src of the featured image, the problem with this however is that the picture is too large for the position. The image gets resized with the result that half of the image disappears.
<div class="exp" style="width:326px;height:120px;background:url({featuredimagesrc}); background-repeat: no-repeat; background-position: 50% 30%;"></div></a>
Does any of you have a clue how I can use the medium thumbnail in here? I probably need to change ‘featuredimagesrc’ to something that call the medium thumbnail, but I have no clue on which code to call there.
Thanks in advance!
- The topic ‘Calling medium sized thumbnail’ is closed to new replies.