Add a Class to ‘the_post_thumbnail’ a Featured Image

Go to source

From: wpsnipp.com
By:

When adding a featured image to a template, you may want to add a class to the image tag that is being generated. This extra class will allow you to use CSS to format it better.

link: Add a Class to ‘the_post_thumbnail’ a Featured Image


Add a Class to ‘the_post_thumbnail’ a Featured Image is a post from: wpsnipp.comWordPress Snippets, Code, Hacks, 615+ for your wordpress theme or blog.