-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMP support? #59
Comments
https://amp-wp.org/documentation/playbooks/custom-shortcodes-and-widgets/ describes the function |
There's some discussion going on about this in the AMP Project |
I have a proposed "good-enough" solution for this at Automattic/newspack-plugin#276. Let me know if you want it in this plugin and I'll open a PR here. I'd definitely prefer to contribute it upstream to this plugin instead of maintaining it as a tweak in Newspack. |
@claudiulodro Yes, we'd love to have your PR here. |
Thanks! We'll take a look as soon as we can. |
Fallback cases where Pym.js fails to load in the parent
For shortcodes:
[pym src=""]foo[/pym]
that passes the contents to$content
to be used as the innards of the placeholder div:<div id="pym_1" class="pym ">foo</div>
For blocks:
Specific to AMP
For whatever WordPress AMP plugins we want to support:
amp-iframe
as a pymParent: AMP Compatibility nprapps/pym.js#182The text was updated successfully, but these errors were encountered: