2016-09-16 22 views
0

我使用Google AMP用於我的新聞網站。Wordpress - AMP驗證器失敗 - NextGen圖庫

但我有很多驗證錯誤。
我在互聯網上發現,它可能是一個可能導致這個錯誤的插件,所以我檢查了我所有的插件,最後我發現它是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 

我可以有一些替代方案或建議,以解決這一問題?

+0

你能否提供更多的信息究竟是什麼故障?我假設** **標籤,因爲它沒有轉換爲** **標籤,對吧? –

+0

你好,我編輯我的帖子有錯誤。當我停用這個插件時驗證是正確的... –

回答

0

我解決問題這一行添加到您的functions.php

add_filter('run_ngg_resource_manager', '__return_false');