[Smush Pro] SmushPro Plugin Conflict with AMP

Hello, we are seeing errors in Google Search Console with our AMP plugin and Smush. Plugin is simply called AMP. The error is called: Tag found outside the document head which is only allowed as a direct child of the document head.

When I look at the non-amp page (https://buzzfence.com/reasons-to-love-cedar-pickets/ ) and view the source of any of the images, I’m seeing the image embed code, and then an additional noscript-wrapped img code under it

When I look at the AMP page (https://buzzfence.com/reasons-to-love-cedar-pickets/amp/ ) and view the source code of the images, I’m seeing noscript wrapped around the original image, and then added and wrapped around the original noscript image again. I believe that this is what’s causing the error, as the error message relates to noscript being a parent of noscript.

Do we know how/why the non-AMP version of the site is generating that noscript block? Is that something that a plugin (like Smush) is doing?

  • Nebu John
    • Staff

    Hi Jason Hubsch ,

    Hope you are doing good and thank you for reaching out to us.

    I checked this on your site and was unable to find the mentioned error message in the browser console. Is this issue fixed? If not, can you please attach the screenshot of the error in your next reply?

    I can confirm you that Smush will not generate a nonscript block. It should be another plugin or theme feature that generate those nonscript block. You can identify this with a conflict test. To know more about the conflict test, you can check this guide (section E): https://premium.wpmudev.org/docs/getting-started/getting-support/#initial-troubleshooting

    Please let us know if you need any further assistance regarding this. Have a nice day :slight_smile:

    Kind Regards,
    Nebu John

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.