Wordpress - AMP验证器失败 - NextGen Gallery

时间:2016-09-16 09:57:25

标签: wordpress amp-html nextgen-gallery google-amp

我正在使用Google AMP作为我的新闻网站。

但我有很多验证错误 我发现在互联网上,它可能是一个可能导致此错误的插件,所以我检查了所有插件,最后我发现它是NextGen画廊,这会破坏我的验证。

我与支持人员联系但没有回复。

错误:

> 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

我可以提供一些替代方案或建议吗?

1 个答案:

答案 0 :(得分:0)

我解决了这一行的问题,以添加到你的functions.php

add_filter( 'run_ngg_resource_manager', '__return_false' );