Pinterest widget

Hi

Can’t work out how to add the below in cornerstone to this page https://www.commissionit.co.uk/art-commissions-bespoke-paintings-to-murals/?

Copy and paste this code into your page where you want your add-on to appear:

Don’t forget to include pinit.js once per page, right before the closing tag.

Hi there,

You can add the HTML code to a raw content element in Cornerstone:

<a data-pin-do="embedBoard" data-pin-board-width="400" data-pin-scale-height="240" data-pin-scale-width="80" href="https://www.pinterest.co.uk/commissionit/art-commissions/"></a>

then add this to the functions.php file of your child theme by logging through FTP:

you can add the code below in your child theme’s functions.php file.

add_action( 'wp_footer', 'add_pinterest_js' );
function add_pinterest_js(){
     if(is_page(1)) {  ?>
    <script async defer src="//assets.pinterest.com/js/pinit.js"></script>
   <?php
     }
}

Change 1 with the page id of the page with a different language.

Here is our guide in getting the page id

Hope that helps

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.