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

Add amp_story_supports_landscape filter for initial opt-in to landscape support for stories #2468

Merged
merged 1 commit into from
May 29, 2019

Conversation

westonruter
Copy link
Member

@westonruter westonruter commented May 29, 2019

With this change, a site can opt-in to landscape (desktop) support for stories via:

add_filter( 'amp_story_supports_landscape', '__return_true' );

In the future we'll need to do more for adjusting assets for landscape as well. See #2409.

Here's a plugin that allows you to leverage this: https://gist.github.com/westonruter/4e4ee2b5790c6218fab40a7b3f90331f

@westonruter westonruter added this to the v1.2 milestone May 29, 2019
@googlebot googlebot added the cla: yes Signed the Google CLA label May 29, 2019
@westonruter westonruter requested a review from swissspidy May 29, 2019 17:54
@westonruter westonruter merged commit e40a574 into develop May 29, 2019
@westonruter westonruter deleted the add/landscape-support branch May 29, 2019 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Signed the Google CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants