• Hello all together,

    I’ve got a little bit of trouble with AMP and the WP Featherlight (1.3.4) Lightbox.

    If I activate AMP for my Blogpost and activate the option to open the Lightbox on desktop when a Picture of the gallery will be clicked, the WP Featherlight Lightbox won’t work on mobilephones.

    If I deactivate that option an make the gallery unclickable, the AMP Lightbox work on mobilephones.

    I don’t know what is wrong or how can I fix it.

    Now, I deactivated the AMP on my latest blogpost (https://auf-achse-sein.de/iguazu/) and both will work. But in that case, the AMP is deactivated.

    If it helps, I got those dates from AMP to check:

    [
    {
    "url": "https://auf-achse-sein.de/sicherheit/",
    "type": "is_singular[post]",
    "label": "Beitrag",
    "amp_url": "https://auf-achse-sein.de/sicherheit/?amp",
    "validation_errors": [
    {
    "node_name": "script",
    "parent_name": "head",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "type": "text/javascript",
    "src": "https://auf-achse-sein.de/wp-includes/js/jquery/jquery.min.js?ver=normalized",
    "id": "jquery-core-js"
    },
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "wp-featherlight",
    "file": "includes/class-scripts.php",
    "line": 135,
    "function": "WP_Featherlight_Scripts::load_js",
    "hook": "wp_enqueue_scripts",
    "priority": 20,
    "dependency_type": "script",
    "handle": "wp-featherlight",
    "dependency_handle": "jquery-core"
    }
    ]
    },
    {
    "node_name": "script",
    "parent_name": "head",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "type": "text/javascript",
    "src": "https://auf-achse-sein.de/wp-includes/js/jquery/jquery-migrate.min.js?ver=normalized",
    "id": "jquery-migrate-js"
    },
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "wp-featherlight",
    "file": "includes/class-scripts.php",
    "line": 135,
    "function": "WP_Featherlight_Scripts::load_js",
    "hook": "wp_enqueue_scripts",
    "priority": 20,
    "dependency_type": "script",
    "handle": "wp-featherlight",
    "dependency_handle": "jquery-migrate"
    }
    ]
    },
    {
    "node_name": "script",
    "parent_name": "body",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "type": "text/javascript",
    "src": "https://auf-achse-sein.de/wp-content/plugins/wp-featherlight/js/wpFeatherlight.pkgd.min.js?ver=normalized",
    "id": "wp-featherlight-js"
    },
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "wp-featherlight",
    "file": "includes/class-scripts.php",
    "line": 135,
    "function": "WP_Featherlight_Scripts::load_js",
    "hook": "wp_enqueue_scripts",
    "priority": 20,
    "dependency_type": "script",
    "handle": "wp-featherlight"
    }
    ]
    }
    ],
    "stale": false
    },
    {
    "url": "https://auf-achse-sein.de/sicherheit/",
    "type": "is_singular[page]",
    "label": "Seite",
    "amp_url": "https://auf-achse-sein.de/sicherheit/?amp",
    "validation_errors": [
    {
    "node_name": "script",
    "parent_name": "head",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "type": "text/javascript",
    "src": "https://auf-achse-sein.de/wp-includes/js/jquery/jquery.min.js?ver=normalized",
    "id": "jquery-core-js"
    },
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "wp-featherlight",
    "file": "includes/class-scripts.php",
    "line": 135,
    "function": "WP_Featherlight_Scripts::load_js",
    "hook": "wp_enqueue_scripts",
    "priority": 20,
    "dependency_type": "script",
    "handle": "wp-featherlight",
    "dependency_handle": "jquery-core"
    }
    ]
    },
    {
    "node_name": "script",
    "parent_name": "head",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "type": "text/javascript",
    "src": "https://auf-achse-sein.de/wp-includes/js/jquery/jquery-migrate.min.js?ver=normalized",
    "id": "jquery-migrate-js"
    },
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "wp-featherlight",
    "file": "includes/class-scripts.php",
    "line": 135,
    "function": "WP_Featherlight_Scripts::load_js",
    "hook": "wp_enqueue_scripts",
    "priority": 20,
    "dependency_type": "script",
    "handle": "wp-featherlight",
    "dependency_handle": "jquery-migrate"
    }
    ]
    },
    {
    "node_name": "script",
    "parent_name": "body",
    "code": "DISALLOWED_TAG",
    "type": "js_error",
    "node_attributes": {
    "type": "text/javascript",
    "src": "https://auf-achse-sein.de/wp-content/plugins/wp-featherlight/js/wpFeatherlight.pkgd.min.js?ver=normalized",
    "id": "wp-featherlight-js"
    },
    "node_type": 1,
    "sources": [
    {
    "type": "plugin",
    "name": "wp-featherlight",
    "file": "includes/class-scripts.php",
    "line": 135,
    "function": "WP_Featherlight_Scripts::load_js",
    "hook": "wp_enqueue_scripts",
    "priority": 20,
    "dependency_type": "script",
    "handle": "wp-featherlight"
    }
    ]
    }
    ],
    "stale": false
    }
    ]

    Thanks for your help

    Christa

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

  • The topic ‘Problems with WP Featherlight and AMP’ is closed to new replies.