• Resolved designative

    (@designative)


    Hi there! This is to let you know that — while installing AMP for WordPress — their validation tool found some errors. (I’ve added the validation results at the bottom of this message.

    While you’re looking at improving compatibility with AMP, I was hoping to get some advice on how to proceed in the meantime: should I hide Spectra blocks on mobile by toggling off the resposiveness individual blocks?

    Thanks in advance for your help,

    Itamar

    [
    {
    "url": "https://www.designative.info/",
    "type": "is_front_page",
    "label": "Homepage",
    "amp_url": "https://www.designative.info/?amp",
    "stale": false,
    "error": false,
    "validated_url_post": {
    "id": 18554,
    "validation_errors": [
    {
    "code": "STYLESHEET_TOO_LONG",
    "type": "css_error",
    "spec_name": "style amp-custom",
    "node_name": "link",
    "node_attributes": {
    "rel": "stylesheet",
    "id": "uagb-block-css-css",
    "href": "https://www.designative.info/blog/wp-content/uploads/uag-plugin/custom-style-blocks.css?ver=normalized",
    "media": "all"
    },
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "ultimate-addons-for-gutenberg",
    "file": "classes/class-uagb-front-assets.php",
    "line": 109,
    "function": "UAGB_Front_Assets::enqueue_asset_files",
    "hook": "wp_enqueue_scripts",
    "priority": 10,
    "dependency_type": "style",
    "handle": "uagb-block-css"
    }
    ]
    },
    {
    "code": "STYLESHEET_TOO_LONG",
    "type": "css_error",
    "spec_name": "style amp-custom",
    "node_name": "link",
    "node_attributes": {
    "rel": "stylesheet",
    "id": "uagb-block-css-css",
    "href": "https://www.designative.info/blog/wp-content/uploads/uag-plugin/custom-style-blocks.css?ver=normalized",
    "media": "not all",
    "data-media": "all",
    "onload": "this.media=this.dataset.media; delete this.dataset.media; this.removeAttribute( 'onload' );"
    },
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "ultimate-addons-for-gutenberg",
    "file": "classes/class-uagb-front-assets.php",
    "line": 109,
    "function": "UAGB_Front_Assets::enqueue_asset_files",
    "hook": "wp_enqueue_scripts",
    "priority": 10,
    "dependency_type": "style",
    "handle": "uagb-block-css"
    }
    ]
    }
    ]
    },
    {
    "url": "https://www.designative.info/?s=example",
    "type": "is_search",
    "label": "Search Results",
    "amp_url": "https://www.designative.info/?s=example&amp",
    "stale": false,
    "error": false,
    "validated_url_post": {
    "id": 68562,
    "edit_link": "https://www.designative.info/blog/wp-admin/post.php?post=68562&action=edit"
    },
    "validation_errors": [
    {
    "node_name": "script",
    "parent_name": "body",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "src": "https://www.designative.info/blog/wp-content/plugins/ultimate-addons-for-gutenberg/assets/js/table-of-contents.min.js?ver=normalized",
    "id": "uagb-table-of-contents-js"
    },
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "ultimate-addons-for-gutenberg",
    "file": "classes/class-uagb-front-assets.php",
    "line": 109,
    "function": "UAGB_Front_Assets::enqueue_asset_files",
    "hook": "wp_enqueue_scripts",
    "priority": 10,
    "dependency_type": "script",
    "handle": "uagb-table-of-contents"
    }
    ]
    },
    {
    "node_name": "script",
    "parent_name": "body",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "type": "text/javascript",
    "id": "uagb-script-frontend-70422"
    },
    "text": "document.addEventListener(DOUBLE_QUOTED_STRING, function(){ window.addEventListener( SINGLE_QUOTED_STRING, function(){\n\tUAGBTableOfContents._run( {DOUBLE_QUOTED_STRING:[true,true,true,true,true,true],DOUBLE_QUOTED_STRING:false}, SINGLE_QUOTED_STRING );\n} );\n })",
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "ultimate-addons-for-gutenberg",
    "file": "classes/class-uagb-post-assets.php",
    "line": 548,
    "function": "UAGB_Post_Assets::print_script",
    "hook": "wp_footer",
    "priority": 1000
    }
    ]
    },
    {
    "node_name": "script",
    "parent_name": "body",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "type": "text/javascript",
    "id": "uagb-script-frontend-69907"
    },
    "text": "document.addEventListener(DOUBLE_QUOTED_STRING, function(){ window.addEventListener( SINGLE_QUOTED_STRING, function(){\n\tUAGBTableOfContents._run( {DOUBLE_QUOTED_STRING:[true,true,true,true,true,true],DOUBLE_QUOTED_STRING:false}, SINGLE_QUOTED_STRING );\n} );\n })",
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "ultimate-addons-for-gutenberg",
    "file": "classes/class-uagb-post-assets.php",
    "line": 548,
    "function": "UAGB_Post_Assets::print_script",
    "hook": "wp_footer",
    "priority": 1000
    }
    ]
    },
    {
    "node_name": "script",
    "parent_name": "body",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "type": "text/javascript",
    "id": "uagb-script-frontend-69642"
    },
    "text": "document.addEventListener(DOUBLE_QUOTED_STRING, function(){ window.addEventListener( SINGLE_QUOTED_STRING, function(){\n\tUAGBTableOfContents._run( {DOUBLE_QUOTED_STRING:[true,true,true,true,true,true],DOUBLE_QUOTED_STRING:false}, SINGLE_QUOTED_STRING );\n} );\n })",
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "ultimate-addons-for-gutenberg",
    "file": "classes/class-uagb-post-assets.php",
    "line": 548,
    "function": "UAGB_Post_Assets::print_script",
    "hook": "wp_footer",
    "priority": 1000
    }
    ]
    },
    {
    "node_name": "script",
    "parent_name": "body",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "type": "text/javascript",
    "id": "uagb-script-frontend-69341"
    },
    "text": "document.addEventListener(DOUBLE_QUOTED_STRING, function(){ window.addEventListener( SINGLE_QUOTED_STRING, function(){\n\tUAGBTableOfContents._run( {DOUBLE_QUOTED_STRING:[true,true,true,true,true,true],DOUBLE_QUOTED_STRING:false}, SINGLE_QUOTED_STRING );\n} );\n })",
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "ultimate-addons-for-gutenberg",
    "file": "classes/class-uagb-post-assets.php",
    "line": 548,
    "function": "UAGB_Post_Assets::print_script",
    "hook": "wp_footer",
    "priority": 1000
    }
    ]
    },
    {
    "node_name": "script",
    "parent_name": "body",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "type": "text/javascript",
    "id": "uagb-script-frontend-68848"
    },
    "text": "document.addEventListener(DOUBLE_QUOTED_STRING, function(){ window.addEventListener( SINGLE_QUOTED_STRING, function(){\n\tUAGBTableOfContents._run( {DOUBLE_QUOTED_STRING:[true,true,true,true,true,true],DOUBLE_QUOTED_STRING:false}, SINGLE_QUOTED_STRING );\n} );\n })",
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "ultimate-addons-for-gutenberg",
    "file": "classes/class-uagb-post-assets.php",
    "line": 548,
    "function": "UAGB_Post_Assets::print_script",
    "hook": "wp_footer",
    "priority": 1000
    }
    ]
    }
    ]
    }
    ]
    • This topic was modified 2 years, 1 month ago by designative.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘AMP Incompatibility’ is closed to new replies.