Skip to content

Instantly share code, notes, and snippets.

@archondigital
Last active November 3, 2016 16:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save archondigital/10884cb1871dadcda35a33336eca47ef to your computer and use it in GitHub Desktop.
Save archondigital/10884cb1871dadcda35a33336eca47ef to your computer and use it in GitHub Desktop.
Custom transformer rules for FB Instant Articles plugin on WordPress
{ "rules" :
[
{ "class": "PassThroughRule", "selector" : "ins.adsbygoogle" },
{ "class": "PassThroughRule", "selector" : "div.alignright" },
{ "class": "PassThroughRule", "selector" : "div.alignleft" },
{ "class": "PassThroughRule", "selector" : "div.callout" },
{ "class": "PassThroughRule", "selector" : "div.row" },
{ "class": "PassThroughRule", "selector" : "div.columns" },
{ "class": "PassThroughRule", "selector" : "div.jetpack-video-wrapper" }
]
}
@archondigital
Copy link
Author

Adding here my custom transformer rules used in most of the websites I run. Most are rules specifically for Foundation 5 or Foundation 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment