Add snippet code for Pinterest button widgets
-
I just updated the Expound them and the code I had added to the header file was lost. Rather than editing it again, I would like to use the snippet plugin to create code that will stick with updates since you don’t have a CSS box for this theme.
I use the Pinterest button widget on my site and to get it to work, there is some javascript that must be pasted into the header or footer section.
On one of my other websites, the developer told me to add the snippet plugin and to create a snippet with this code:
add_action(‘wp_footer’, ‘zeechild_footer_scripts’);
function zeechild_footer_scripts() {
?>
<script type=”text/javascript” src=”//assets.pinterest.com/js/pinit.js”></script>
<?php
}Can you give me the code so I can do the same thing for this website?
If you want to see more information about the Pinterest javascript, you can find it here. Click the build it button and scroll to the bottom of the page.
http://business.pinterest.com/widget-builder/#do_pin_it_button
- The topic ‘Add snippet code for Pinterest button widgets’ is closed to new replies.