• Resolved blackvault

    (@blackvault)


    Hello,

    I have a paid version of CodePeople Post Maps. I have version 5.0.55.

    That said, I installed an AMP plugin. On the AMP pages, the stylesheet code is being inserted PRIOR to the <html> tag which creates a warning/error in Google search console.

    How can I have it inject the code to a better place?

    Here is what is generated, which causes the issue on AMP pages:

    
    <link rel='stylesheet' id='cpm_style-css' href='https://www.theblackvault.com/casefiles/wp-content/plugins/codepeople-post-map/styles/cpm-styles.css' type='text/css' media='all' /><script src='https://www.theblackvault.com/casefiles/wp-content/plugins/codepeople-post-map/js/markerclusterer_compiled.js?ver=pro'></script><script src='https://www.theblackvault.com/casefiles/wp-content/plugins/codepeople-post-map/js/cpm.js?ver=pro'></script><!doctype html> <html amp lang="en-US"> <head><script custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-latest.js" async></script> <meta charset="utf-8"> <link rel="dns-prefetch" href="//cdn.ampproject.org"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=2,user-scalable=yes">   <

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @blackvault

    I guess the issue is not caused specifically by our plugin. If you check the source code of your website:

    There are multiple tags before the <!doctype html> tag, and they are included by the plugin you are using for caching and optimize the website.

    Please, try disabling this plugin and let me know.

    Best regards.

    Thread Starter blackvault

    (@blackvault)

    I went ahead and disabled the caching program. It all disappeared except the CodePeople language.

    <link rel='stylesheet' id='cpm_style-css' href='https://www.theblackvault.com/casefiles/wp-content/plugins/codepeople-post-map/styles/cpm-styles.css' type='text/css' media='all' /><script src='https://www.theblackvault.com/casefiles/wp-content/plugins/codepeople-post-map/js/markerclusterer_compiled.js?ver=pro'></script><script src='https://www.theblackvault.com/casefiles/wp-content/plugins/codepeople-post-map/js/cpm.js?ver=pro'></script><!doctype html> <html amp lang="en-US"> <head>

    Plugin Author codepeople

    (@codepeople)

    Hello @blackvault

    Please, contact me through my private website to check the issue in detail: Support

    and indicate the plugin you are using to generate the AMP pages.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AMP Pages / Moving Code to AFTER HTML Tag’ is closed to new replies.