Support » Plugin: Instant Articles for WP » No rules defined for in the context of InstantArticle

  • I see this error as soon as I turn on the plugin and load an empty post:

    No rules defined for <div> in the context of InstantArticle

    What’s the status of this message? I see it on empty posts. Is it expected?

    If it applies to all posts created with the visual editor, shouldn’t it be accounted for in the plugin itself?

    https://wordpress.org/plugins/fb-instant-articles/

Viewing 4 replies - 1 through 4 (of 4 total)
  • same as me….. it says “No rules defined for <div class=”g1-fluid-wrapper-inner”> in the context of InstantArticle”….. i already tried the PassThroughRule but it won’t work…. need some help pls…

    sanjayidhatiya

    (@sanjayidhatiya)

    Hi cameeyeopen

    You can create Rule for ignoring or pass. see below example.

    {
    “rules”:
    [
    {
    “class”: “IgnoreRule”,
    “selector” : “.g1-fluid-wrapper-inner”
    }
    ]
    }

    OR

    {
    “rules”:
    [
    {
    “class”: “PassThroughRule”,
    “selector” : “.g1-fluid-wrapper-inner”
    }
    ]
    }

    Thanks,
    Sanjay

    • This reply was modified 8 months ago by  sanjayidhatiya. Reason: improve sentence

    I receive warnings on all posts (even if the new post is empty-no source markup) : “No rules defined for <meta> in the context of Header” and “No rules defined for <meta> in the context of InstantArticle”
    When applying ignore rules:
    { “rules” : [
    {
    “class” : “IgnoreRule”,
    “selector” : “meta”
    }
    ] }
    the warnings disappeared but I not able to submit anything to FB even if the box
    ” Submit this article even with warnings” is checked. Tried a lot of things – disabled near all the plugins … No result! Any ideas?

    Has anyone solved the

    No rules defined for <div> in the context of InstantArticle

    Still trying to solve it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No rules defined for in the context of InstantArticle’ is closed to new replies.