• I like this plugin and want to continue using it but I get a lot of my traffic from AMP pages and I can’t seem to figure out how to get these sharing buttons to show up on AMP. Can you help?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    It looks like you’re using the Automattic AMP plugin, in which case I think you can do this if you can add some code to your site. I have some code which I think will get you started on the process: example gist for adding Scriptless Social Sharing to AMP.

    Note: I needed to tweak the how the button settings are retrieved, so the latest version of the plugin output class is needed to really get this working: output class.

    This is fairly experimental, although it’s working for me on a local/test install. I would definitely recommend trying this on a local or development site of your own to see how it all comes together.

    The weirdest part was getting all of the CSS added, because you can’t just load the stylesheets as you normally would. I copied both plugin stylesheets in their entirety and then the dynamically generated CSS is at the end. You may need to adjust this for your liking.

    Please practice safe coding, back up your site/files, and if this works, I’d be curious to hear the results. Good luck!

    Thread Starter Tnace

    (@radiocure1)

    Thanks for the quick response Robin! To be honest, that’s quite a bit above my skill level. Would you be willing to help me implement this?

    Plugin Author Robin Cornett

    (@littlerchicken)

    Feel free to contact me directly and probably yes, I can. It’s an interesting problem to solve!

    Thread Starter Tnace

    (@radiocure1)

    Just sent, thanks Robin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Integration with AMP’ is closed to new replies.