Support » Plugin: AMP » Add to head + to body – standard mode

  • Resolved biznext



    I used the Reader mode before and used the amp_post_template_head and amp_post_template_body_open hooks to add codes to HEAD and to BODY, Respectively.

    Now I started using the standard mode and it’s gone.
    those hooks work only on the reader mode.

    How can I add this code to HEAD and to BODY on the standard mode?

    I am using Astra theme (full cupmatible)

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


    Hello @biznext

    Thanks for the support topic,
    The amp_post_template_head and amp_post_template_body_open hooks are specific to legacy theme.

    Those are equivalent to wp_head and wp_body_open hook so replacing those hooks should work.

    let me know if it helps

    Thread Starter biznext


    Yeah, I know.

    But something strange, it not worked before.

    Now I added and it is working.
    Maybe some cache problems.

    Thank you

    Plugin Support Milind More


    Glad it worked!
    I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.