0

I’m using Google AMP for my press site.

But I had many validation error.
I found on the internet, it’s maybe one plugin which can cause this error, so I had checked all my plugins and finally I discovered that it’s NextGen gallery which break my validation.

I contact the support but no response.

ERRORS :

> The mandatory attribute 'amp-custom' is missing in tag 'style
> amp-custom'. DISALLOWED_HTML line 256, column 0    The attribute
> 'href' in tag 'link rel=stylesheet for fonts' is set to the invalid
> value
> 'http://ns3363707.ip-94-23-251.eu/cosavostra/dev/tennismagazine_2/wp-content/themes/citynews/inc/shortcodes/css/shortcodes.css'.
> AUTHOR_STYLESHEET_PROBLEM line 270, column 0    The tag 'script' is
> disallowed except in specific forms. CUSTOM_JAVASCRIPT_DISALLOWED line
> 311, column 72    The tag 'script' is disallowed except in specific
> forms. CUSTOM_JAVASCRIPT_DISALLOWED line 312, column 0    The tag
> 'script' is disallowed except in specific forms.
> CUSTOM_JAVASCRIPT_DISALLOWED line 314, column 0    The tag 'script' is
> disallowed except in specific forms. CUSTOM_JAVASCRIPT_DISALLOWED line
> 318, column 0    The tag 'script' is disallowed except in specific
> forms. CUSTOM_JAVASCRIPT_DISALLOWED line 348, column 0    The tag
> 'script' is disallowed except in specific forms.
> CUSTOM_JAVASCRIPT_DISALLOWED line 349, column 0    The tag 'script' is
> disallowed except in specific forms. CUSTOM_JAVASCRIPT_DISALLOWED line
> 350, column 0

Can I have some alternative Or advice to fix this ?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Kévin HURON
  • 60
  • 1
  • 10

1 Answers1

0

I fix the problem with this line to add to your functions.php

add_filter( 'run_ngg_resource_manager', '__return_false' );
Kévin HURON
  • 60
  • 1
  • 10