[Plugin: The OpenHook Customizations Manager] Adding Pinterest button with OpenHook
-
I am trying to add the Pinterest “Pin it” button to the bottom of every post (much like a re-tweet button or Facebook like). I am entering this code from the Pinterest site directly into the Thesis open hook “after_post” and am clicking save with the PHP enable box checked. However, when I save nothing changes.
Any explanation as to why this would be the case? My site is https://www.eatingbender.com/. Thanks!
<!– Include ONCE for ALL buttons in the page –>
<script type=”text/javascript”>
(function() {
window.PinIt = window.PinIt || { loaded:false };
if (window.PinIt.loaded) return;
window.PinIt.loaded = true;
function async_load(){
var s = document.createElement(“script”);
s.type = “text/javascript”;
s.async = true;
if (window.location.protocol == “https:”)
s.src = “https://assets.pinterest.com/js/pinit.js”;
else
s.src = “https://assets.pinterest.com/js/pinit.js”;
var x = document.getElementsByTagName(“script”)[0];
x.parentNode.insertBefore(s, x);
}
if (window.attachEvent)
window.attachEvent(“onload”, async_load);
else
window.addEventListener(“load”, async_load, false);
})();
</script><!– Customize and include for EACH button in the page –>
Pin It
- The topic ‘[Plugin: The OpenHook Customizations Manager] Adding Pinterest button with OpenHook’ is closed to new replies.