-
Notifications
You must be signed in to change notification settings - Fork 385
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
Understand the level of effort for enabling AMP support on native themes #1036
Comments
Working On This Now Hi @westonruter, |
Twenty Fifteen Features
Twenty Fifteen: Removed By Validator wp_dequeue_script( 'twentyfifteen-skip-link-focus-fix' );
wp_dequeue_script( 'twentyfifteen-script' );
wp_dequeue_script( 'twentyfifteen-keyboard-image-navigation' );
wp_dequeue_script( 'comment-reply' );
remove_action( 'wp_head', 'twentyfifteen_javascript_detection', 0 ); This rule in
There's also an <meta name="viewport" content="width=device-width">
|
See also this PR adds |
Is that the script that is getting reported? Since it is inside of conditional comments it should get ignored by the whitelist sanitizer. |
Script In Header Hi @westonruter, |
Twenty Sixteen Support
Twenty Sixteen: Removed By Validator We should probably dequeue these illegal scripts that the validator strips (original add_action): wp_dequeue_script( 'twentysixteen-html5' );
wp_dequeue_script( 'twentysixteen-skip-link-focus-fix' );
wp_dequeue_script( 'comment-reply' );
wp_dequeue_script( 'twentysixteen-script' );
remove_action( 'wp_head', 'twentysixteen_javascript_detection', 0 ); There's also an error from style.css: And there's an <meta name="viewport" content="width=device-width"> |
Twenty Seventeen Support
Twenty Seventeen: Validator Errors We should probably dequeue the illegal scripts from these handles:
And remove an action that prints a remove_action( 'wp_head', 'twentyseventeen_javascript_detection', 0 ); Similar to the 2 themes above, there's an <meta name="viewport" content="width=device-width, initial-scale=1"> |
AC1: Test and report the experience of converting the three most recent core themes (
Twenty Fifteen
,Twenty Sixteen
,Twenty Seventeen
) to be compatible. Document this process.AC2: Report CSS findings - this is related to the CSS Tree Shaking issue #930
The text was updated successfully, but these errors were encountered: