• Resolved grandeabc

    (@grandeabc)


    Em todas as postagens, o código abaixo acaba desaparecendo:

    <!– Alright Tag Manager –>
    <script type=”text/javascript”>
    var _mtm = _mtm || [];
    _mtm.push({‘mtm.startTime’: (new Date().getTime()), ‘event’: ‘mtm.Start’});
    var d=document, g=d.createElement(‘script’), s=d.getElementsByTagName(‘script’)[0];
    g.type=’text/javascript’; g.async=true; g.defer=true; g.src=’https://tagmanager.alright.network/manager/js/container_WG2l3VNp.js&#8217;; s.parentNode.insertBefore(g,s);
    </script>
    <!– End Alright Tag Manager –>

    Ao consultar o resultado, sempre aparece apenas:

    <!– Alright Tag Manager –>
    <!– End Alright Tag Manager –>

    Nas páginas em si, não há este problema. Mas nas postagens, sim. E Já inseri no header, footer, content, single-post e demais. Porém, o mesmo erro ocorre.

    Já consultei plugins de otimização, resetei, recoloquei o código acima nos .php citados no parágrafo anterior … mas segue a mesma falha.

    Preciso resolver isto, para utilizar serviço de monetização em meu site.

    att.
    Fabiano Esteves
    Jornal Grande ABC

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @grandeabc

    Can you provide a screenshot so that I can better understand and help you with this query?

    Regards
    ThemeGrill

    Thread Starter grandeabc

    (@grandeabc)

    Obrigado, segue abaixo:

    Está correto, selecionado o script no Header (header.php: seria replicado em todos os posts, uma vez que nas páginas estáticas, está correto também)

    (http://www.jornalgrandeabc.com)

    https://jornalgrandeabc.com/script-correto/

    Exemplo em post, ocorre em todos: (https://jornalgrandeabc.com/2020/09/30/mulheres-revolucionarias-bertha-von-suttner/)

    https://jornalgrandeabc.com/script-errado/

    – Nas postagens, o exemplo acima onde há o erro é dentro de HEAD, em qualquer parte que insiro as tags, até mesmo no html do texto de publicação, acontece a supressão das linhas do código.

    Hi @grandeabc

    It seems like the error was generated from the plugins rather from our theme so could you once ask this query to the respective plugin developer and see if they can help? If you need further help regarding our theme, we will gladly provide you with assistance so do let us know! 🙂

    Regards,
    ThemeGrill

    Thread Starter grandeabc

    (@grandeabc)

    Não estou usando plugin, mas sim inserindo o script diretamente no código fonte.

    Preciso resolver isso, estou deixando de monetizar. Sem monetizar, não consigo comprar pacote profissional de nenhum plugin, e nem do ColorMag.

    Mais uma vez: O script aparece (o código e o resultado) corretamente nas páginas estáticas, porém nas publicações o código é suprimido.

    Lembrando: Estou inserindo código, sem uso de plugin. E a empresa monetizadora (Alrigth Network) não faz idéia deste erro.

    Hi @grandeabc

    Could you once try once disabling the used AMP plugin on the site? Upon inspection, it seems that the single post page seems to be utilizing the AMP feature.
    Let me know after you’ve done this!

    Regards,
    ThemeGrill

    Thread Starter grandeabc

    (@grandeabc)

    Obrigado, parece ser a solução. Estou testando o terceiro plugin AMP, e todos causaram o mesmo erro. O código só aparece com plugins de AMP desabilitados.

    Hi @grandeabc

    Glad you found the source of the issue. Currently, our theme is not AMP compatible, however, you can use any AMP plugin with its own design provided i.e better to use the layout provided via the used AMP plugin within your site.

    Let me know if you have any other queries! 🙂

    Regards,
    ThemeGrill

    Thread Starter grandeabc

    (@grandeabc)

    Obrigado. Tentando ajustar o AMP, desde o início este plugin me respondeu como “ColorMag” sendo compatível, então fiz as configurações necessárias para manter o site veloz. Removi a aplicação do AMP em posts, parece manter boa velocidade e o código está correto, abrindo propaganda (Alright). Impossível trabalhar sem este plugin, ainda mais sendo do Google, e meu site precisa aparecer nas pesquisas do Google … lolol.

    Muito obrigado pela paciência e atenção.

    Hi @grandeabc
    Glad to hear it worked! Do let me know in the future if you have any further queries. 🙂

    Also, if you like the ColorMag theme, you can help us by leaving a good review here: https://ww.wp.xz.cn/support/theme/colormag/reviews/#new-post

    Regards,
    ThemeGrill

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Script é apagado’ is closed to new replies.