NewsMag, Tagdiv AMP Plugin & The AMP Validator

Posted in: Newsmag
Post count: 6

I am testing the tagDiv AMP plugin under Newsmag 4.6 Theme. I like the way it displays the articles/amp. Excellent work.

But I have passed some url’s of posts by the AMP Validator and I see that it marks an error regarding custom javascripts:

“Custom JavaScript is not allowed”.

Post count: 6

Sorry. these two javascripts are not related to NewsMag theme but to NewRelic.
Investigating I found a function that allows to disable these two javascripts.

function action_parse_query() {
if ( function_exists( ‘newrelic_disable_autorum’ ) ) {
newrelic_disable_autorum();
}
}
add_action(‘parse_query’, ‘action_parse_query’);

More info: HERE

  • This reply was modified 7 years by ocupado.
  • This reply was modified 7 years by ocupado.
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.