Skip to content
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

How to enable it on the main theme? #778

Closed
htrex opened this issue Sep 14, 2017 · 1 comment
Closed

How to enable it on the main theme? #778

htrex opened this issue Sep 14, 2017 · 1 comment

Comments

@htrex
Copy link

htrex commented Sep 14, 2017

I'm starting to build a custom WP theme with native AMP code and planning to introduce service workers later on to transform it in a Progressive Web AMP (PWA) application.

I understand that this plugin offers alternative amp urls instead, using a simplified theme to render posts while doing the hard job to cleanup the content.

I'd like to remove the alternative amp url that is injected in the page head and enable the content sanification and cleanup for regular non /amp urls.

Could please someone give some clue about how to proceed?

@westonruter
Copy link
Member

What you're looking for is “AMP-as-canonical” (AMP Canonical) and initial support for this is being worked on in #668. It is planned for but it's not yet a capability. You can follow that pull request for updates.

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

No branches or pull requests

2 participants