• Resolved ckmeier

    (@ckmeier)


    The plug in is not working with AMP pages created by AMP Plug in. I get one error for each blog post that should appear using the filter. I turned off AMP for the page but that is not the ideal solution. If I remove the code with the error through the AMP Validator – the plugin does not work. The text of the error is pasted below.

    The attribute target is set to the invalid value
    Details (shows the target is blank)
    HTML attribute

    Blog Filter
    Markup Status
    Kept
    Information
    AMP has specific set of allowed elements and attributes that are allowed in valid AMP pages. Learn about the AMP HTML specification. If an element or attribute is not allowed in AMP, it must be removed for the page to cached and be eligible for prerendering.

    If you remove the invalid markup then it will not block this page from being served as AMP. Note that you need to check what impact the removal of the invalid markup has on the page to see if the result is acceptable. If you keep the invalid markup, then the page will not be served as AMP.

    Error code
    INVALID_ATTR_VALUE
    Element attributes
    class snip0047 bf_read_more_1
    href https://meierfire.com/expert/case-study-explosion-investigation/
    target
    Node name
    target
    Parent element
    a
    Sources
    #1 Filter: the_content
    Post ID: 2676
    Post Type: Post (post)
    Sources:
    #2 Block Name: core/shortcode
    Post ID: 1441
    Block Index: 5
    Type: Core
    Name: wp-includes
    Function: render_block_core_shortcode()
    Location: blocks/shortcode.php:16
    #3 Type: Plugin
    Name: Blog Filter (blog-filter)
    Function: awl_blog_filter_shortcode()
    Shortcode: AWL-BlogFilter
    Location: blog-filter-shortcode.php:4

    • This topic was modified 4 years, 3 months ago by ckmeier.

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

Viewing 1 replies (of 1 total)
  • Plugin Author A WP Life

    (@awordpresslife)

    Hi @ckmeier,

    Actually AMP plugin removes all inline CSS JS code from the pages. AMP loads the pages with minimal resources to boot the content load time.

    And our plugin uses the dynamic inline functional js code. Which is can’t ignore by AMP technique and it’s removed that type of code from the plugin.

    The actual means is our plugin is not fully AMP compatible.

    Let us know which AMP plugin are you using? if any possibility we will find out.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Not working with AMP pages’ is closed to new replies.