Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress Featured Image Re: WordPress Featured Image

#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!