php - Adding thumbnail attribute in Wordpress? -
I am trying to implement the jQuery plugin called adaptive background on my WordPress site.
I want to use it for my post thumbnail readme documentation:
script
data-adaptive-background
with images in the attribute Appears to:
html & lt; Img src = "/ image.jpg" data-adaptive-background = '1' & gt;
My question is: How do I add this feature to my post thumbnails, and my post thumbnails only?
This should do the trick, whatever your big thumb is said to just "big" should be changed .
the_post_thumbnail ('large', array ('data-adaptive-background' = & gt; 1));
Comments
Post a Comment