To design the output by css class is very useful.  So when you want to design wordpress post thumbnil you have to add class to the post thumbnil. So you can add class to post thumbnil as below.

the_post_thumbnail(‘post-thumbnail’, [‘class’ => ‘CLASS_NAME’]);


the_post_thumbnail( ‘thumbnail’, array( ‘class’=> ‘CLASS_NAME’) );


431 total views, 1 views today

(Visited 22 times, 1 visits today)

12 thoughts on "How to Add Class to WordPress Post Thumbnail"

  1. wewgaming says:

    Just wanna input on few general things, The website layout is perfect, the articles is very superb : D.

    1. thanks @wewgaming for your review.

  2. Great, yahoo took me stright here. thanks btw for post. Cheers!

  3. MartinDic says:

    Hellow my name is MartinDic. Wery capable post! Thx 🙂

  4. Connie says:

    This design is spectacular! You certainly know
    how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Fantastic
    job. I really loved what you had to say, and more than that, how you presented it.
    Too cool!

  5. Tawanna says:

    Good way of describing, and good paragraph to get data regarding my presentation subject, which i am going to deliver in academy.

  6. Louvenia says:

    Great delivery. Sound arguments. Keep up the good spirit.

  7. I just got done eating a platter of spaghetti before visiting your site. It sure makes the full feeling all that much better.

  8. Lazaro says:

    I was suggested this website by my cousin. I’m not sure whether this post is
    written by him as no one else know such detailed about my problem.
    You are incredible! Thanks!

  9. Sheena says:

    Please let me know if you’re looking for a article writer for your
    site. You have some really great posts and I think I would be a good asset.
    If you ever want to take some of the load off,
    I’d really like to write some articles for your blog in exchange for a link back to mine.
    Please blast me an email if interested. Thanks!

  10. Good afternoon, here is the list of what I want to order. Look, please, is everything in stock?
    Zhou Yu

Leave a Reply

Your email address will not be published. Required fields are marked *