【发布时间】:2018-02-08 17:30:36
【问题描述】:
我正在为我的新闻网站使用 Google AMP。
但我有很多验证错误。
我在网上找到,可能是一个插件导致了这个错误,所以我检查了我所有的插件,最后我发现它破坏了我的验证。
我联系了支持人员,但没有回复。
错误:
> 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
我可以有一些替代方案或建议来解决这个问题吗?
【问题讨论】:
-
您能否提供更多信息究竟是什么失败了?我假设
标签因为它没有被转换成
标签,对吧? -
您好,我在编辑帖子时出现错误。当我停用此插件时,验证正常...
标签: wordpress amp-html nextgen-gallery google-amp