Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.

Adding class to the_post_thumbnail() #59

Open
Tabrisrp opened this issue Mar 20, 2013 · 3 comments
Open

Adding class to the_post_thumbnail() #59

Tabrisrp opened this issue Mar 20, 2013 · 3 comments

Comments

@Tabrisrp
Copy link

Hello,

By default, the_post_thumbnail can have an array parameter passed to it, with (among other) the class to add to the html generated code. With WPThumb we can't do it anymore, but I think it could be useful.

@willmot
Copy link
Member

willmot commented Mar 20, 2013

Makes sense. Pull Requests welcome :-)

@joehoyle
Copy link
Member

This should already work, so perhaps we broke something

@crixlet
Copy link

crixlet commented Dec 27, 2014

I found that i needed to add a space before the class in the wp_thumb post thumbnail array in order to get it to work ('class' => ' img-responsive')

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants