Adding Share By Email to WPMUDEV Floating Social

If you find this free website useful – why don’t you support this with a donation? It is easy…. read more ….

To add to WMPUDEV’s floating social an add to email button you can add the following code to Settings> Floating Social > Add New Custom Service > Code

The button will open the default mail client and construct a message that includes the post’s URL.

You may need to tweak the floating social css to position the icon correctly.

You will need to modify this to point to your own (or some one else’s icon for email)

<div class='my_email_button'>
</div>
<script>
jQuery(function($){
$(".my_email_button").prepend('<a href="mailto:?subject=I wanted you to share this post with you&amp;body=Check out this post '+document.URL+'" title="Share by Email"><img src="http://myiconurl.com/images/email.png"/></a>');
});
</script>

 


Posted

in

, ,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *