Support » Plugin: AMP for WordPress » Move [link rel=”amphtml”] to the top of [head] to solve Google indexing problem

  • Regarding this iusse:
    https://github.com/ampproject/amphtml/issues/5909

    I think the <link rel="amphtml"> tag should be moved to the top of the <head>.

    This simply can be done by editing this line in: includes/amp-frontend-actions:

    add_action( 'wp_head', 'amp_frontend_add_canonical' );

    and changing it to:

    add_action( 'wp_head', 'amp_frontend_add_canonical', 0 );

    • This topic was modified 1 year, 1 month ago by  Mazinger.
    • This topic was modified 1 year, 1 month ago by  Mazinger.
    • This topic was modified 1 year, 1 month ago by  Mazinger.
  • The topic ‘Move [link rel=”amphtml”] to the top of [head] to solve Google indexing problem’ is closed to new replies.