Comments (7)
Hi @not-enough-yet,
To use the new filter you need implement it in your child theme's functions.php
.
You can use this snippet as inspiration:
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' );
from hello-theme.
Just to clarify and follow up on this issue I am attaching visuals.
This is what it looks like at the moment:
This is what it should look like:
from hello-theme.
Hi @not-enough-yet,
Please check the next version of the theme, it will include a new filter designed to address your request.
Thanks!
from hello-theme.
Thanks for the help! I can't seem to get it to work. Could you explain how to add viewport-fit=cover
to what already exists? Also shouldn't this change be added to the code as the default?
Thank you!
from hello-theme.
You can also add your own meta tag to override the previous meta tag:
function custom_viewport() {
?>
<meta name="viewport" content="viewport-fit=cover"
<?php
}
add_action('wp_head', 'custom_viewport');
from hello-theme.
+1
I would like better iPhone compatibility without the need to create a child-theme. Is that possible with Hello Theme?
from hello-theme.
Hi @not-enough-yet,
To use the new filter you need implement it in your child theme'sfunctions.php
.
You can use this snippet as inspiration: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' );
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.
from hello-theme.
Related Issues (20)
- WHY??? $content_width = 800; // Pixels. HOT 1
- Woocommerce reviews doesn't works
- Author Archive is Redirecting to HomePage HOT 1
- Skip to content button has a blank href HOT 2
- 2.7.0: hello_elementor_body_open) no longer working HOT 6
- 2.7.0: hello_elementor_body_open) no longer working HOT 1
- 2.7.0: hello_elementor_body_open no longer working HOT 1
- Fatal error after update HOT 1
- Changelog of 2.7.0 HOT 2
- Featured image in a post is broken if you change theme (Hello >theme 2023)
- The hamburger menu didn't show in guest mobile
- get 404 in author archive
- Default pink still overrides Global styles and custom CSS HOT 3
- Elementor Single post template - post content widget - image size
- Multiple tags on post pages are merged
- Single.php is not used in Custom Post Types with Display Conditions
- additional meta tag on sites with yoast HOT 3
- Generated CSS has duplicate table style entries
- Reduce the size of hello-elementor-theme-style-css by splitting the CSS and only loading the relevant parts HOT 1
- Thème Hello - Buddypress - xprofile HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hello-theme.