fb-instant-articles icon indicating copy to clipboard operation
fb-instant-articles copied to clipboard

No rules defined for <div class="wp-block-image"> in the context of InstantArticle

Open ilearning101 opened this issue 5 years ago • 5 comments

No rules defined for

in the context of InstantArticle

Been searching for this issues for hours, didn't see any highlight here

Anyone can suggest how to encounter this issue please?

ilearning101 avatar Jan 22 '20 13:01 ilearning101

Please share the solution of No rules defined for above question

81adil avatar Jun 11 '20 18:06 81adil

Same here, found an error like this using FB instant article plugin with wp, please fix

mrwindowsx avatar Aug 06 '20 15:08 mrwindowsx

This is still happening, in WP 5.5.1. It appears the Gutenberg Image Blocks is what it thinks is the plugin. Is there a plan to fix this?

keyinora avatar Sep 03 '20 16:09 keyinora

I did some testing as I found that some of my post didn't have this issue, but had image blocks used.

The issue comes up, when you apply an alignment to a block.

It by default is only wrapped in a

, but the moment you apply an alignment, it add a "
" around the element.

I hope this helps

keyinora avatar Sep 03 '20 16:09 keyinora

Fix till this can be corrected in the plugin.

{ "rules": [{ "class": "PassThroughRule", "selector": "div.wp-block-image" }] }

keyinora avatar Sep 03 '20 17:09 keyinora

This issue has been marked stale because it has been open for 30 days with no activity. If there is no activity within 7 days, it will be closed.

This is an automation to keep issues manageable and actionable and is not a comment on the quality of this issue nor on the work done so far. Closed issues are still valuable to the project and are available to be searched.

github-actions[bot] avatar Oct 01 '22 00:10 github-actions[bot]