Title: No rules defined for
Last modified: September 1, 2016

---

# No rules defined for

 *  [djkrimp](https://wordpress.org/support/users/djkrimp/)
 * (@djkrimp)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/no-rules-defined-for-1/)
 * hi,
    After the latest update these are the following errors I am trying to fix.
   Any help will be appreciated.
 * No rules defined for <img class=”aligncenter size-full wp-image-130875″> in the
   context of Anchor
    No rules defined for <img class=”aligncenter size-full wp-
   image-130877″> in the context of Anchor No rules defined for <script> in the 
   context of Paragraph
 * The HTML element does not contain any text: Avoid including empty HTML elements
   
   The HTML element does not contain any text: Avoid including empty HTML elements
 * Also galleries are not showing, despite trying the Transformer rules and functions.
   php method.
 * [https://wordpress.org/plugins/fb-instant-articles/](https://wordpress.org/plugins/fb-instant-articles/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Webprom Design](https://wordpress.org/support/users/webprom/)
 * (@webprom)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/no-rules-defined-for-1/#post-8306326)
 * Enable custom rules for the plugin, and then add:
 *     ```
       {
         "rules":
         [
           {
             "class": "PassThroughRule",
             "selector": "//a[descendant::img]"
           }
         ]
       }
       ```
   
 * Works for me now.
 *  [Zox Zin Min](https://wordpress.org/support/users/zoxzinmin/)
 * (@zoxzinmin)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/no-rules-defined-for-1/#post-8442165)
 * Hi .. Webprom Design!
 * Where can I enable custom rule? Should I use any plugin for that? Please shoe
   me path. Thank you.
 *  [Webprom Design](https://wordpress.org/support/users/webprom/)
 * (@webprom)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/no-rules-defined-for-1/#post-8442182)
 * [https://wordpress.org/plugins/fb-instant-articles/screenshots/](https://wordpress.org/plugins/fb-instant-articles/screenshots/)
 *  [Zox Zin Min](https://wordpress.org/support/users/zoxy/)
 * (@zoxy)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/no-rules-defined-for-1/#post-8442329)
 * Thank you very much Webprom Design. Now I got it. 😀
 *  [husseinmirzah](https://wordpress.org/support/users/husseinmirzah/)
 * (@husseinmirzah)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/no-rules-defined-for-1/#post-9238882)
 * I’m sorry to bother but I have another error:
    `No rules defined for <img /> 
   in the context of H2` How to fix that?
    -  This reply was modified 8 years, 12 months ago by [husseinmirzah](https://wordpress.org/support/users/husseinmirzah/).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘No rules defined for’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/fb-instant-articles_8fa0a4.svg)
 * [Instant Articles for WP](https://wordpress.org/plugins/fb-instant-articles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fb-instant-articles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fb-instant-articles/)
 * [Active Topics](https://wordpress.org/support/plugin/fb-instant-articles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fb-instant-articles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fb-instant-articles/reviews/)

 * 5 replies
 * 5 participants
 * Last reply from: [husseinmirzah](https://wordpress.org/support/users/husseinmirzah/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/no-rules-defined-for-1/#post-9238882)
 * Status: not resolved