Zen Cart Logo
Forums / Addon Sideboxes / Show Pinterest Boards on define_page

Show Pinterest Boards on define_page

Views: 2,319

Results 1 to 1 of 1
16 Oct 2013, 4:25 AM
#1
pdxdoug avatar

pdxdoug

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