Home › Forums › CSS › WordPress Featured Image › Re: WordPress Featured Image
November 28, 2011 at 12:52 pm
#91444
TheDoc
Member
First of all, this part is wrong:
You’re calling the image twice and I’ll show you a little tidbit that you can add the class of ‘right’ directly to the image!
'right')); ?>
The reason why your class wasn’t working before is because you had ‘img.right’. This will target images with a class of ‘right’ but you had your class on the div wrapping the image, not on the image itself.
By using the code I’ve provided and getting rid of the div altogether, you won’t need to change the CSS!