add class from Pinterest to post-thumbnail
I would like to add some html to the featured post thumbnail, but the thumbnail only! I would like to add data-pin-no-hover="true" and nopin="nopin" from Pinterest
|
There is no theme option for this, you will need to edit bfa_post_parts.php and add your code into it. search for 'function bfa_post_bodycopy'
|
Only no option for html
PHP Code:
|
you can put html there, you just have to make sure you swap between the php and html - if it's in between a <?php and ?> it is php, outside that it is html
|
Not something like <img src="image.jpg" class="nopin" width="100px" height="100px"> right?
|
ahhh, the <img...> is generated in the the_post_thumbnail() function which is a WordPress function and not part of the theme. You can pass parameters to it. see https://codex.wordpress.org/Function...post_thumbnail
|
All times are GMT -6. The time now is 01:07 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.