adding tag inside the amp page

Posted in: Newspaper
Post count: 23

Hello,
We want to add an <amp-embed> tag on our AMP pages immediately after the closing </article> tag, as shown in this image: screenshot (https://app.screencast.com/RDiDWdUxootDF).

We have tried using the WordPress actions the_content and wp_footer. However, the_content injects it before the <footer> tag, while wp_footer injects it at the very bottom of the page.

Is there a custom filter or action in your theme that we can use to achieve this placement?

Thank you!

Post count: 27744
Post count: 23

Hello,
We are aware of this, but our company still receives significant traffic from AMP URLs, and we do not want to discontinue using them. Could you please provide a temporary solution for our issue?

Thank you.

Post count: 27744

Hi,

In this topic is a suggestion on how to redirect the links https://forum.tagdiv.com/topic/amp-end-of-line/
You can try to add the code here https://imgur.com/2myuxcU and if it not work in this path if you have also, the mobile theme -> wp-content/plugins/td-composer/mobile/single.php

Thank you!

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