Not working with AMP pages
-
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 attributeBlog 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:4The page I need help with: [log in to see the link]
- The topic ‘Not working with AMP pages’ is closed to new replies.