Master Snippet: Share

Documentation:

HTML:

<div class="share-btn-wrapper"> <button data-toggle="modal" data-target="#share-modal" class="rd-btn share-btn">Share +</button> </div> <div id="share-modal" class="modal fade" role="dialog"> <div class="modal-dialog" style="width: 300px; margin: 50px auto;"> <!-- Modal content--> <div class="modal-content"> <div class="modal-body"> <button type="button" class="close" data-dismiss="modal">&times;</button> <div class="a2a_kit a2a_kit_size_32 a2a_default_style"> <a class="a2a_button_facebook"></a> <a class="a2a_button_twitter"></a> <a class="a2a_button_google_plus"></a> <a class="a2a_button_pinterest"></a> <a class="a2a_button_email"></a> </div> <script> var a2a_config = a2a_config || {}; a2a_config.linkname = "<?php the_title(); ?>"; a2a_config.linkurl = "<?php the_permalink() ?>"; </script> <script async src="https://static.addtoany.com/menu/page.js"></script> </div> </div> </div> </div>