[Resolved] Please fix Pinterest "Pin It" syntax in public-display-functions.php
In the public-display-functions.php file, you are correctly adding a HTTP / HTTPS check on line 23, like so…
wp_enqueue_script( 'pinterest-assets', 'http' . ( is_ssl() ? 's' : '' ) . '://assets.pinterest.com/js/pinit.js', null, '', true );
Please add the same kind of check to the button image on line 101, which currently looks like this…
$btn_img_url = '//assets.pinterest.com/images/PinExt.png';
…and it should look like this…
$btn_img_url = 'http' . ( is_ssl() ? 's' : '' ) . '://assets.pinterest.com/images/PinExt.png';
…so it does not automatically assume which protocol to use.
- The topic ‘[Resolved] Please fix Pinterest "Pin It" syntax in public-display-functions.php’ is closed to new replies.