This is my pinterest widget code:
<div id="pinterestFeed">
<a data-pin-do="embedUser" href="https://www.pinterest.com/krish"
data-pin-scale-width="80" data-pin-scale-height="320" data-pin-board-width="400">
</a>
<script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script>
</div>
On page load pinterest feed div display is none. I have a click me tag, when i click on 'click me' the feed should be display. but it not work for me.
when i remove the css properties display none then it's works fine.
Pinterest's script won't initialize the widget if container is hidden. You could make it 'almost hidden' until the script does the job this way:
Using HTML:
CSS:
Than engage Script:
I cannot make it work here, but you can check it on this Fiddle.