-
AuthorPosts
-
July 29, 2019 at 8:47 am #1122661
Hello,
I installed the Enfold Visual Artist Theme and replaced some pictures on the page, but the problem is that the images of my startpage are shown very beautiful on a desktop but are not shown on an iPhone or iPad. I know that other people have the same problem but I couldn’t find a solution.
Some people are changing something in the functions.php ore stylesheet.css but I don’t really know how to do it.
Can you help me please?Thank you very much in advance!
best regards
ChrisJuly 29, 2019 at 4:04 pm #1122781Hey Chris,
I tried to login in the popup window that appears when trying to login however the credentials doesn’t seem to work, please check.
Best regards,
NikkoJuly 30, 2019 at 8:05 am #1123056Hey Nikko,
thank you for your answer. I saw that I took the wrong password.
Please check the private content, it should work now :-)best regards,
Chris
July 30, 2019 at 10:05 am #1123075Hi Chris,
Thanks for the access, but I can’t see the issue on my end. Can you try the solution posted on this thread: https://kriesi.at/support/topic/playing-with-new-demos/#post-871865
You will need to turn on first Custom Css Classes in Enfold > Layout Builder > check Show element options for developers then save. https://kriesi.at/documentation/enfold/intro-to-layout-builder/#turn-on-custom-css-class-field-for-all-alb-elements
Next you edit homepage then edit the color section then on Custom Css Class field put: bg-fixed
Go to Enfold > General Styling > Quick CSS, then add this code:.bgfixed { background-attachment: fixed !important; }Finally go to Appearance (Design on your end) > Theme Editor > functions.php (put the code at the bottom):
add_action('wp_footer', 'remove_class_if_ipad'); function remove_class_if_ipad(){ ?> <script type="text/javascript"> (function($) { $(document).ready(function($){ var deviceAgent = navigator.userAgent.toLowerCase(); if (deviceAgent.match(/(iphone|ipod|ipad)/)) { $('.bgfixed').removeClass('bgfixed'); } }); })(jQuery); </script> <?php }Best regards,
NikkoJuly 30, 2019 at 11:33 am #1123115Thank you, I tried it but there was an error when I wanted to implement the code in functions.php
please see the Screenshot:
https://ibb.co/8N3PypY
thank you
best regards
ChrisJuly 30, 2019 at 12:04 pm #1123125Hi Chris,
I don’t think you need to add that function since the error mentioned that you have already declared that function.
Best regards,
NikkoJuly 30, 2019 at 12:38 pm #1123131I am sorry but it doesn’t work.
On a desktop the website is perfect,
but on a iPhone it is not working properly. Also on Android the images are shown in the wrong dimension.Please check once again the website, I activated the public entry. Please open it with a computer, and then with an mobile device, you wil see that it doesn’t look good.
Thank you!
August 1, 2019 at 4:33 am #1123719Hi Chris,
I have made the modification based on the solution on the other thread.
Can you try to check again?Best regards,
NikkoAugust 1, 2019 at 8:49 am #1123802Hi Nikko,
I checked again, but the behavior on mobile devices is still different from the behaviour on a desktop PC.
I can see the pictures now, but without this special scrolling effect which makes the Visual Artist Template so special.In other threads i read, that a lot of other people have this issue too, is there really no solution for that? I mean this problem exists a long time now, does nobody can fix that?
Thank you for your help,
best regards
ChrisAugust 2, 2019 at 6:02 am #1124054Hi Chris,
I have checked further into the issue and found out that this was an known bug in IOS devices (such as ipad and iphone), works fine in android phones.
Fixed background attachment for images are not supported by IOS so any browser you use in ipad or iphone, it will not work.
Up until know they did not support this feature but there are some people who claims that their workaround worked for them, can you try to set your site back to the demo you used? and I’ll try to apply those workaround mentioned for you.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.
