Thursday, September 7, 2023

Embedding a Pinterest Board into Your Website or Blog

Here is a widget for my Pinterest Board - Artifacts from the Future!

 
PUT WIDGET HERE

Wanna know how I did it?

First - add this line of code somewhere in the body of the html for the web page or blog:

<script async="" defer="" src="//assets.pinterest.com/js/pinit.js" type="text/javascript"></script>

(This lets your page know you are utilizing javascript.)

Second - place this java script code where you want the "widget" to appear in yoru website or blog - remember to change the url to the url for YOUR BOARD!

 <a data-pin-board-width="400" data-pin-do="embedBoard" data-pin-scale-height="240" data-pin-scale-width="80" href="https://www.pinterest.com/randydnichols/artifacts-from-the-future/"></a>

So - remember to use the HTML view to edit yoru blog - NOT the compose view. ALSO - don;t get freaked out because you can;t see the widget active in your "compose view." - Try the Preview button - but when you publish it - you can "VIEW BLOG" to see what your visitor sees.

You should be fine after a few trials and adjustments.

Good Luck



No comments:

Post a Comment