How to Fix No rules defined for in the context of Instant Articles

How to Fix No rules defined for in the context of Instant Articles

How to Fix No rules defined for in the context of Instant Articles

To Fix Error No rules defined for in the context of Instant Articles or any other error in Articles That Use Facebook Instant Articles Plugin in WordPress do this Steps Correctly .

1 - Enable custom transformer rules in Facebook Instant Articles Settings .

go to Instant Articles and in the Facebook Instant Articles Settings scroll down to Custom transformer rules and Check Box Enable custom transformer rules then copy and paste code bellow
{
"rules": [{
"class": "PassThroughRule", "selector": "div"
}]
}
then Scroll down and Press Save Changes . After Save Changes go to article have a problem and refresh Page then scroll to see error fixed or not .

2 - Fix Elements Errors

for example if error appear
No rules defined for in the context of InstantArticle
the
<
mean this is element and to fix element go to Enable custom transformer rules in Facebook Instant Articles Settings and add , then element name in selector and Save Changes .

3 - Fix String Errors

for example if error appear
No rules defined for "Download " in the context of InstantArticle
the
"
before download word mean this is string and to fix string in the article press the Text Button then find the words in error for example if error appear
No rules defined for "Download " in the context of InstantArticle
find the Download word appear between quotation marks then add it between p element

Download

after that Press Update Button in Article then problem will fixed .