AddThis is the world’s largest content sharing platform. It provides tools that make it easier to share content across the social web including Facebook, Twitter, WhatsApp, and more. We have created compatibility with AddThis in our AMP plugin.
Follow the steps below to add AddThis Share Buttons in your AMP.
Step 1: If you haven’t registered yet then first create the AddThis account https://www.addthis.com/register
Step 2: In AddThis dashboard click on AMP option like the below screenshot.
Scroll down a little to see this <script>
Step 3: If you are using our plugin then no need to add this <script> in the <head> tag. Once you enable this option No need to add manually this <script> in <head> tag.
Step 4: Go to AddThis account and copy the “data-pub-id” and “data-widget-id ” like this below the screenshot.
Step 5: Copy this Pub-ID and Tool ID from AddThis Account.
Step 6: Next go to your WordPress Admin Area -> AMP option panel -> Design -> Social
Step 7: Position: By using this option you can select the position of AddThis where you want to display AddThis in AMP pages single Sidebar (left side), Above content and below content.
Step 8: Enter Pub ID: Paste this Pub-ID from AddThis account.
Step 9: Enter Tool ID: Paste this Tool ID from AddThis account.
Step 10: Click on the Save Change Button.
The Output of AddThis Share Button.
That’s it for this tutorial!
We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.