Tagged: color section, iphone
-
AuthorPosts
-
April 27, 2021 at 2:19 pm #1297001
Hello there nice people,
I have a problem with displaying a wordpress site which uses the Enfold-Template. It is the site of a photographer, who wanted to display black/white images followed by color images of the same sujet at the starting page while scrolling down. So we inserted a black/white image in a color section followed by a color section with the color image. It is the same way as the Enfold Visual artist is built: https://kriesi.at/themes/enfold-visual-artist/
Well, everything works very well. Tested it on some browsers (on Macintosh), everything fine. Tested it on a Samsung smart phone or a Lenovo tablet: Everything fine.
But – and here is our problem: On iPhones these images aren’t displayed, only the colored background of the color section (with a text link). Saw this problem on 2 different iPhones.
Could anyone help us, what the problem with iPhones is here? Unfortunately the photographer is also using an iPhone …April 30, 2021 at 4:41 pm #1297600Hey Renko,
Thank you for the inquiry.
This is actually a known issue with the Visual Artist demo and its parallax backgrounds. The sections do not look the same on mobile view because parallax effects are automatically disabled.
We usually recommend the following css code to fix the background, but it will also disable the fixed effect and background images will just scroll with the page.
@media only screen and (max-width: 1024px) { #top .avia-bg-style-fixed .av-parallax{ background-attachment: scroll !important; background-size: cover !important; } }
You can also create a different home page for mobile view without the parallax effect. To assign a different page for mobile, you can try this script.
// redirect home page on mobile add_action( 'wp_footer', 'ava_wps_params', 9999 ); function ava_wps_params() { ?> <script> if (window.location.pathname == '/' && jQuery(window).width() <= 767) { window.location = "/newpage/"; } </script> <?php }
From: https://www.wpstud.io/show-different-homepage-mobile-devices/
Best regards,
IsmaelMay 3, 2021 at 8:58 am #1297941Good morning Ismael,
thank you for your info and for your solutions. Unfortunately the photographer likes the parallax effect. So, we’ll aks him if we should skip this on mobile or maybe do something else.
Anyway, many thanks for your support …May 4, 2021 at 7:31 am #1298175 -
AuthorPosts
- You must be logged in to reply to this topic.