Support » Plugin: Head, Footer and Post Injections » Exclude on certain CPT

  • Resolved Brad Johnson

    (@p4fbradjohnson)


    Hi

    I would like to exclude certain scripts from running on my amp content.

    At the moment, tag manager is a problem for me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    That cannot be controlled by head and footer and usually amp plugin does not allow third party plugin to inject javascript.

    Stefano.

    Brad Johnson

    (@p4fbradjohnson)

    @satollo thank you for your response.

    However, when I remove the tag manager script from my header, my errors go away… UNLESS, its a problem with the AMP plugin?

    Plugin Author Stefano Lissa

    (@satollo)

    Uhm, that is strange, as far as I know the amp plugins have special hooks (which i use) to inject things in the amp page header.

    Maybe your amp plugin works differently: which plugin are you using?

    Stefano.

    Brad Johnson

    (@p4fbradjohnson)

    I am using this plugin https://pt.wordpress.org/plugins/amp/

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