-
Notifications
You must be signed in to change notification settings - Fork 224
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
iPhone X Landscape Compatibility #49
Comments
Tweak: add viewport content filter (#49).
Hi @not-enough-yet, Please check the next version of the theme, it will include a new filter designed to address your request. Thanks! |
Thanks for the help! I can't seem to get it to work. Could you explain how to add Thank you! |
Hi @not-enough-yet, function my_viewport_content( $content ) {
$my_viewport_content = 'viewport-fit=cover';
// if you need any of the default settings use the following (note the comma separator):
// return $content . ', ' . $my_viewport_content;
// if you need only the new settings, use this:
return $my_viewport_content;
}
add_filter( 'hello_elementor_viewport_content', 'my_viewport_content' ); |
You can also add your own meta tag to override the previous meta tag:
|
+1 I would like better iPhone compatibility without the need to create a child-theme. Is that possible with Hello Theme? |
Hmmm, thanks, but it also modifies the design in portrait mode, it does not only affect the landscape mode of the iPhone X. The header becomes all tiny in portrait mode. |
Due to the provision Apple made for the iPhone X notch, all websites have white margin bars added to them when in landscape mode. Please add
viewport-fit=cover
to the<meta>
tag to fix it.The text was updated successfully, but these errors were encountered: