• Resolved oceandigitals

    (@oceandigitals)


    Hi,

    I need to add content at the end of every page only for AMP version.

    Is there any hook I could use?

    I tried with the generic:

    if ( function_exists( ‘is_amp_endpoint’ ) && is_amp_endpoint() )

    and it works for AMP, but the content of the standard pages disappears.

    So I wanted to know if there is some hook specific for the plugin that I could use

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @oceandigitals

    Thank you for contacting us, if you are using the AMP plugin in Standard Mode or in Transitional Mode, you can use the wp_footer hook

    If you are using AMP plugin in Reader Mode with the Legacy theme, you can use the amp_post_template_footer filter. you can find more details in our documentation

    We hope this helps!

    Thread Starter oceandigitals

    (@oceandigitals)

    Flawlessly worked!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hook to add content’ is closed to new replies.