[resolved] Add snippet code for Pinterest button widgets (4 posts)

  1. karenstl
    Posted 2 years ago #

    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>

    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.

  2. Konstantin Kovshenin
    Theme Author

    Posted 2 years ago #

    > since you don't have a CSS box for this theme.

    You don't need a CSS box for a theme, you can use a Custom CSS plugin that works with any theme.

    If, however, you would like to add javascript to your website, the snippet that you have shared would be a good way to go. If it worked with your other theme, there's no reason it should not work with Expound.

    Good luck!

  3. vanessajw
    Posted 2 years ago #

    I have finally cracked putting in a feeder profile board, you have to click button (under the text tab), put in the first part of the embed, then straight after, put in the javascript, then at the end use , then it really works.

  4. vanessajw
    Posted 2 years ago #

    click the code button.....open code button before putting the embed link, then immediately put in the javascript, then finish with the close code button. http://www.youtube.com/watch?v=Lp97ylhuXeY

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic