• Resolved mrwindowsx

    (@mrwindowsx)


    The plugin said that the twentytwenty theme is amp compatible, however, when the site scan finished it would generate the errors like the below, Jetpack plugin also activate during this situation:

    [
        {
            "url": "https://site.net/",
            "type": "is_front_page",
            "label": "Homepage",
            "amp_url": "https://site.net/",
            "validation_errors": [
                {
                    "code": "STYLESHEET_TOO_LONG",
                    "type": "css_error",
                    "spec_name": "style amp-custom",
                    "node_name": "link",
                    "node_attributes": {
                        "rel": "stylesheet",
                        "id": "twentytwenty-print-style-css",
                        "href": "https://site.net/wp-content/themes/twentytwenty/print.css?ver=__normalized__",
                        "media": "print"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "twentytwenty",
                            "file": "functions.php",
                            "line": 191,
                            "function": "twentytwenty_register_styles",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "style",
                            "handle": "twentytwenty-print-style"
                        }
                    ]
                }
            ],
            "stale": false
        },
        {
            "url": "https://site.net/what-are-bonds-investment/",
            "type": "is_singular[post]",
            "label": "Post",
            "amp_url": "https://site.net/what-are-bonds-investment/",
            "validation_errors": [
                {
                    "code": "STYLESHEET_TOO_LONG",
                    "type": "css_error",
                    "spec_name": "style amp-custom",
                    "node_name": "link",
                    "node_attributes": {
                        "rel": "stylesheet",
                        "id": "twentytwenty-print-style-css",
                        "href": "https://site.net/wp-content/themes/twentytwenty/print.css?ver=__normalized__",
                        "media": "print"
                    },
                    "node_type": 1,
                    "sources": [
                        {
                            "type": "theme",
                            "name": "twentytwenty",
                            "file": "functions.php",
                            "line": 191,
                            "function": "twentytwenty_register_styles",
                            "hook": "wp_enqueue_scripts",
                            "priority": 10,
                            "dependency_type": "style",
                            "handle": "twentytwenty-print-style"
                        }
                    ]
                }
            ],
            "stale": false
        }
    ]

    So how to fix this? or would you please release the fix.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @mrwindowsx

    Thank you for contacting us, the TwentyTwenty and other core themes are AMP compatible.

    As we checked your validation errors may be related to excessive use of CSS, the AMP pages only allow 75Kb of CSS per page

    AMP plugin uses CSS tree shaking to remove excessive CSS that is not being used on the page, but in some cases, there are more than 75Kb CSS usages.

    We will recommend identifying elements that are responsible for excessive CSS such as adding too much content on a page, plugin or theme that might be adding excessive CSS etc.

    You can use the AMP validation tool to identify the plugins or themes that may add excessive CSS to a page.

    We hope this helps!

    Plugin Support Milind More

    (@milindmore22)

    @mrwindowsx As we didn’t receive a response I’ll mark this as resolved. Feel free to open a?new support topic?if you require any further assistance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘twentytwenty not amp compatible’ is closed to new replies.