Hi! I am using @Waldo’s tutorial (which is incredible, thank you!!!) on creating custom share buttons and I’ve run into a snag (I know it’s me, but I don’t know where the problem is/how to fix it).
I’ve created the Div and added in the code, but when I publish the site there’s nothing there. My guess is that I messed up the class somehow, but I don’t know how.
Try inserting <img src="https://uploads-ssl.webflow.com/5f987876b842137433c247de/5ff143d28f7605009344848a_Social%20share%20icons.png"> between the anchor tags.
So the code in the embed would be this (please note that I have removed target="_blank" as well):
<a class="Social-Share-FB" href="javascript:fbshareCurrentPage()" alt="Share on Facebook"><img src="https://uploads-ssl.webflow.com/5f987876b842137433c247de/5ff143d28f7605009344848a_Social%20share%20icons.png"></a>
<script language="javascript">
function fbshareCurrentPage()
{window.open("https://www.facebook.com/sharer/sharer.php?u="+escape(window.location.href)+"&t="+document.title, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false; }
</script>
Great question, Sophia! I typically add a div block to the page, then give it a class name of Social-Share-Twitter (that’s the class name in this Twitter link above).
Once I have that element on the page with that class, I give it a size in pixels of the display size or add padding if it’s on text. It should render on the published page thereafter.