AMP single post template

Posted in: Newsmag
Post count: 137

Hello, as you can see in screen: https://ibb.co/D9P1jG7
Add to any share button is visible but i need to write directly shortcode into AMP template (working in sviluppo.calcioinpillole.com)
I tried into /vhosts/sviluppo/wp-content/plugins/amp/templates/single.php
but not works. Is this the wrong path?
My purpose is display social share like this: https://ibb.co/M1gLDcM

Thanks

Post count: 35449

Hi,
If you are using only amp plugin without mobile theme then yes, the file that need to be edited is wp-content/plugins/amp/templates/single.php
If you are using the mobile theme plugin with amp, then the file that need to be edited is this one wp-content/plugins/td-composer/mobile/single.php
Thank you!

Post count: 137

Ok thanks i have following settings
https://ibb.co/NxZ8CJy
https://ibb.co/7vs1yWT
and this path works fine for me wp-content/plugins/td-composer/mobile/single.php
Now i have issue with javascript section. https://ibb.co/hF4RTHy
i print a simple alert but is not displayed. What is wrong?
Css is rendered correctly
Thanks

Post count: 35449

Hi,
The code for js will not work on amp version – https://i.imgur.com/iS2tRaU.png
Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.