Support » Plugin: Instant Articles for WP » Rules for

  • I installed the plugin on eight websites that I developed in WordPress. In all of them, the “No rules defined for <div> in the context of Paragraph” tag appears, but depending on the rules and certainly it depends on each theme I am aware of, the articles are published without problems. But exactly in one of them, the articles are showing up empty.

    The rule applies to this tag: <div id = "dslc-theme-content-inner"> </ div>

    The letters “dslc” of the code relate to the Live Composer plugin that is installed on this site that is the center of my doubts. And it is in him that the articles appear empty.

    For this and all cases, how can I apply specific rules for each id of the <div> tag so that the articles do not appear empty or with warnings?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @josivandroavelar

    You can add a new IgnoreRule, PassThroughRule or any other rule depending on your requirements, and then specify the div in the selector, here is a selector for your mentioned div:

    
    {
       "class": "PassThroughRule",
       "selector": "//div[@id='dslc-theme-content-inner']"
    }
    

    the selector here written in XPath : Xpath reference

    I followed the tip and everything went right here.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.