Zen Follower
- Join Date:
- Jan 2008
- Location:
- Portland, Oregon USA
- Posts:
- 356
- Plugin Contributions:
- 0
Show Pinterest Boards on define_page
This should be simple but it's driving me crazy.
ZenCart 1.3.9h
According to Pinterest, you can embed a board on a website.
http://business.pinterest.com/widget-builder/#do_embed_board
Basically you paste this link where ever you want the board to appear:
<a data-pin-do="embedBoard" href="http://www.pinterest.com/pinterest/pin-pets/"></a>
Javascript then has to be added to the page:
<script type="text/javascript">
(function(d){
var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');
p.type = 'text/javascript';
p.async = true;
p.src = '//assets.pinterest.com/js/pinit.js';
f.parentNode.insertBefore(p, f);
}(document));
</script>
so I dropped the java code into a file jscript_pinterest.js - without the <script></script> tags - and put it into the /includes/modules/pages/{pagename}/ folder.
Nada. Even using their example board in the link nothing.
Any idea what I'm doing wrong??
Thanks in advance.
Doug