Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @emilianomaina!

    Neve is an AMP-ready theme and it is entirely compatible with AMP. You could check our documentation regarding Neve and AMP. If it doesn’t help, please provide us the URL to your site so we can check the issue.

    Thank you!

    Thread Starter emilianomaina

    (@emilianomaina)

    This is the reason why I chose but unfortunately AMP Plugin (https://amp-wp.org/) Site Scan is reporting multiple issues (as already shown above).

    Digging into AMP Plugin console I find the following errors:

    {
    	"node_name": "script",
    	"parent_name": "head",
    	"code": "DISALLOWED_TAG",
    	"type": "js_error",
    	"node_attributes": {
    		"type": "text/javascript",
    		"id": "ugb-block-frontend-js-v2-js-extra"
    	},
    	"text": "\n/* <![CDATA[ */\nvar stackable = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n/* ]]> */\n",
    	"node_type": "ELEMENT",
    	"sources": [
    		{
    			"type": "core",
    			"name": "wp-includes",
    			"file": "script-loader.php",
    			"line": 2031,
    			"function": "wp_print_head_scripts",
    			"hook": "wp_head",
    			"priority": 9
    		},
    		{
    			"type": "plugin",
    			"name": "stackable-ultimate-gutenberg-blocks",
    			"file": "src/deprecated/v2/init.php",
    			"line": 181,
    			"function": "stackable_block_assets_v2",
    			"hook": "init",
    			"priority": 10,
    			"dependency_type": "script",
    			"extra_key": "data",
    			"text": "var stackable = {\"restUrl\":\"https:\\/\\/lamiacasaelettrica.com\\/wp-json\\/\"};",
    			"handle": "ugb-block-frontend-js-v2"
    		},
    		{
    			"type": "plugin",
    			"name": "stackable-ultimate-gutenberg-blocks",
    			"file": "src/init.php",
    			"line": 186,
    			"function": "Stackable_Init::load_frontend_scripts_conditionally",
    			"hook": "render_block",
    			"priority": 10,
    			"dependency_type": "script",
    			"extra_key": "data",
    			"text": "var stackable = {\"restUrl\":\"https:\\/\\/lamiacasaelettrica.com\\/wp-json\\/\"};",
    			"handle": "ugb-block-frontend-js"
    		},
    		{
    			"type": "plugin",
    			"name": "wp-youtube-lyte",
    			"file": "wp-youtube-lyte.php",
    			"line": 611,
    			"function": "lyte_trim_excerpt",
    			"hook": "get_the_excerpt",
    			"priority": 10,
    			"dependency_type": "script",
    			"extra_key": "data",
    			"text": "var stackable = {\"restUrl\":\"https:\\/\\/lamiacasaelettrica.com\\/wp-json\\/\"};",
    			"handle": "ugb-block-frontend-js"
    		},
    		{
    			"type": "theme",
    			"name": "neve",
    			"file": "inc/views/partials/excerpt.php",
    			"line": 33,
    			"function": "Neve\\Views\\Partials\\Excerpt::render_post_excerpt",
    			"hook": "neve_excerpt_archive",
    			"priority": 10,
    			"dependency_type": "script",
    			"extra_key": "data",
    			"text": "var stackable = {\"restUrl\":\"https:\\/\\/lamiacasaelettrica.com\\/wp-json\\/\"};",
    			"handle": "ugb-block-frontend-js"
    		},
    		{
    			"type": "theme",
    			"name": "neve",
    			"file": "inc/views/template_parts.php",
    			"line": 33,
    			"function": "Neve\\Views\\Template_Parts::render_post",
    			"hook": "neve_blog_post_template_part_content",
    			"priority": 10,
    			"dependency_type": "script",
    			"extra_key": "data",
    			"text": "var stackable = {\"restUrl\":\"https:\\/\\/lamiacasaelettrica.com\\/wp-json\\/\"};",
    			"handle": "ugb-block-frontend-js"
    		}
    	],
    	"removed": true,
    	"reviewed": false
    }
    {
    	"node_name": "script",
    	"parent_name": "body",
    	"code": "DISALLOWED_TAG",
    	"type": "js_error",
    	"node_attributes": {
    		"type": "text/javascript",
    		"id": "ugb-block-frontend-js-js-extra"
    	},
    	"text": "\n/* <![CDATA[ */\nvar stackable = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n/* ]]> */\n",
    	"node_type": "ELEMENT",
    	"sources": [
    		{
    			"type": "core",
    			"name": "wp-includes",
    			"file": "script-loader.php",
    			"line": 2060,
    			"function": "wp_print_footer_scripts",
    			"hook": "wp_footer",
    			"priority": 20
    		},
    		{
    			"type": "core",
    			"name": "wp-includes",
    			"file": "script-loader.php",
    			"line": 2050,
    			"function": "_wp_footer_scripts",
    			"hook": "wp_print_footer_scripts",
    			"priority": 10
    		},
    		{
    			"type": "plugin",
    			"name": "stackable-ultimate-gutenberg-blocks",
    			"file": "src/deprecated/v2/init.php",
    			"line": 181,
    			"function": "stackable_block_assets_v2",
    			"hook": "init",
    			"priority": 10,
    			"dependency_type": "script",
    			"extra_key": "data",
    			"text": "var stackable = {\"restUrl\":\"https:\\/\\/lamiacasaelettrica.com\\/wp-json\\/\"};",
    			"handle": "ugb-block-frontend-js-v2"
    		},
    		{
    			"type": "plugin",
    			"name": "stackable-ultimate-gutenberg-blocks",
    			"file": "src/init.php",
    			"line": 186,
    			"function": "Stackable_Init::load_frontend_scripts_conditionally",
    			"hook": "render_block",
    			"priority": 10,
    			"dependency_type": "script",
    			"extra_key": "data",
    			"text": "var stackable = {\"restUrl\":\"https:\\/\\/lamiacasaelettrica.com\\/wp-json\\/\"};",
    			"handle": "ugb-block-frontend-js"
    		},
    		{
    			"type": "plugin",
    			"name": "wp-youtube-lyte",
    			"file": "wp-youtube-lyte.php",
    			"line": 611,
    			"function": "lyte_trim_excerpt",
    			"hook": "get_the_excerpt",
    			"priority": 10,
    			"dependency_type": "script",
    			"extra_key": "data",
    			"text": "var stackable = {\"restUrl\":\"https:\\/\\/lamiacasaelettrica.com\\/wp-json\\/\"};",
    			"handle": "ugb-block-frontend-js"
    		},
    		{
    			"type": "theme",
    			"name": "neve",
    			"file": "inc/views/partials/excerpt.php",
    			"line": 33,
    			"function": "Neve\\Views\\Partials\\Excerpt::render_post_excerpt",
    			"hook": "neve_excerpt_archive",
    			"priority": 10,
    			"dependency_type": "script",
    			"extra_key": "data",
    			"text": "var stackable = {\"restUrl\":\"https:\\/\\/lamiacasaelettrica.com\\/wp-json\\/\"};",
    			"handle": "ugb-block-frontend-js"
    		},
    		{
    			"type": "theme",
    			"name": "neve",
    			"file": "inc/views/template_parts.php",
    			"line": 33,
    			"function": "Neve\\Views\\Template_Parts::render_post",
    			"hook": "neve_blog_post_template_part_content",
    			"priority": 10,
    			"dependency_type": "script",
    			"extra_key": "data",
    			"text": "var stackable = {\"restUrl\":\"https:\\/\\/lamiacasaelettrica.com\\/wp-json\\/\"};",
    			"handle": "ugb-block-frontend-js"
    		}
    	],
    	"removed": true,
    	"reviewed": false
    }
    {
    	"node_name": "script",
    	"parent_name": "form",
    	"code": "DISALLOWED_TAG",
    	"type": "js_error",
    	"node_attributes": [],
    	"text": "(function(){if(window===window.parent){document.getElementById(__SINGLE_QUOTED_STRING__).name=__SINGLE_QUOTED_STRING__;}})();",
    	"node_type": "ELEMENT",
    	"sources": [
    		{
    			"type": "theme",
    			"name": "neve",
    			"file": "inc/views/partials/comments.php",
    			"line": 41,
    			"function": "Neve\\Views\\Partials\\Comments::render_comment_form",
    			"hook": "neve_do_comment_area",
    			"priority": 10
    		},
    		{
    			"type": "core",
    			"name": "wp-includes",
    			"file": "comment-template.php",
    			"line": 1301,
    			"function": "wp_comment_form_unfiltered_html_nonce",
    			"hook": "comment_form",
    			"priority": 10
    		}
    	],
    	"removed": true,
    	"reviewed": false
    }
    Mat

    (@mateithemeisle)

    Hello @emilianomaina ,

    Thank you for providing the logs!

    From what I could observe, the majority of the errors are thrown due to the Stackable Plugin and the WP-Youtube-Lite plugin. Please disable those and re-check AMP.

    Also, can you please let us know what AMP settings are you using?

    Thank you and please let us know how that worked for you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Neve Theme AMP Incompatibility’ is closed to new replies.