Social Sharing stopped working…
-
So, last night I migrated my site from a Go Daddy hosting account to a new SIte5 hosting account (which they have been excellent support so far) and everything seems to be working as it was, except the Social Sharing option on each of my products. It was working in all my browsers, last night before the migration. Now, the icons showing are not “links” – meaning you cannot click on them, they don’t do anything.
Is there something that I am missing? Is my code bad? Do I need to turn something on in the Admin section? Any ideas?
Here is the code that I have added to the single-product.php file in the WooCommerce directory. Just after line 34:
<!--SOCIAL SHARE--> <div class="socialshare"> <h4>Share this:</h4><ul> <li><a href="#" onclick=" window.open( 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=626,height=436'); return false;"class="facebook"><img src="https://www.rcards.net/wp-content/themes/rustik/images/ico-social-facebook.png" title="Share on Facebook" alt=""></a></li> <li><a href='javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());'><img src='https://www.rcards.net/wp-content/themes/rustik/images/ico-social-pinterest.png'/></a></li> <li><a href="https://twitter.com/share" class="twitter" data-via="rcards" data-hashtags="rcards,greetingcards,chicago" width=626 height=436> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script><img src="https://www.rcards.net/wp-content/themes/rustik/images/ico-social-twitter.png" title="Share on Twitter" alt=""></a></li> </ul> </div>
RIght after this code is the last line of code: <?php get_footer(‘shop’); ?>
Any ideas would be greatly appreciated!
Thanks!
Randy
- The topic ‘Social Sharing stopped working…’ is closed to new replies.