-
AuthorPosts
-
October 26, 2017 at 3:06 pm #869222
i think the visual artist is a nice demo – but unfortunatly not to use with ipad . No background images at all
background-attachment : fixed is not possible ???first i thought it is my clip-path implementation of the demo: https://webers-testseite.de/elegant ( See the transition between the color-section on my solution) but profing the page on Ipad it fails to show all background-images.)
is there in the meanwhile a solution to have on ipad (tablet) mode a different behavior. Maybe scroll would be okOctober 30, 2017 at 3:44 am #870285Hey Guenter,
Thank you for the info. It looks fine on a browser emulation. Could you provide a screenshot or screencast of the issue?
Best regards,
IsmaelNovember 1, 2017 at 7:42 pm #871362no images at all. only colored backgrounds – on the demo page too!
i prove my testings normaly on safari developer and go to responsive view. but even here everything is fine!
Only the real devices shows1) this with position center center of the background images and no-repeat works on ipad:
https://webers-testseite.de/weber/visualisation/2) and this here with center center and contain has only colored background and no images – like your demo-page does too!
https://webers-testseite.de/elegant/November 2, 2017 at 10:38 pm #871865my workaround:
i set up on those color-section the background-attachment to : scroll
but give a custom-class to the color-section: bgfixedthat class has only the meaning of setting :
.bgfixed { background-attachment: fixed !important; }
on functions.php of my child-theme i detect if the device is an ipad/iphone/ipod :lol
and remove that class only for this devices !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 }
this works with scrolling background.
Info: i don’t know why the other way starting with fixed does not work and addClass and set the background-attachment : scroll !important. ???November 3, 2017 at 4:56 am #871966Hi,
I’m not sure why you can’t override the background attachment. Maybe, the css media query that you’ve used was incorrect. What is the actual model/version of the iPad device?
Best regards,
IsmaelNovember 3, 2017 at 10:33 am #872079it works as mentioned above – but first i tend to addClass and give to quick css the scroll position – but this way does not work
i think the inline rules overwrites every other rule setso i decided as above to start on background scroll on alb element – set the fixed positon by quick css – and just remove that custom class set on quick css – this way works as wanted.
Everything ok now – on ipad the background-attachment scrolls with the container.
Before – as mentioned there was nothing but the background-color seen.give it to the devolpers a hint to see their demo: https://kriesi.at/themes/enfold-visual-artist/ on iphone/ipad
November 7, 2017 at 3:21 am #873484December 24, 2017 at 11:25 pm #891958Unfortunately it didn’t worked for me. When will there a Kriesi solution for this standard theme available?
I am looking forward to it.Thanks in advance,
PeterJanuary 3, 2018 at 3:32 am #892706Hi,
@peterkra: Did you set the “Background Attachment” to “Scroll”? You have to add the “remove_class_if_ipad” script in the functions.php file as well.Best regards,
IsmaelJanuary 3, 2018 at 10:21 am #892762Hi Ismael,
I just tried again:
1) Set background attachment to scroll
2) Added the script to my Enfold child functions.php
3) added
.bgfixed {
background-attachment: fixed !important;
}
To the Quick CSS in the general styling tabHowever without the desired effect. Images are now scrolling indeed, but that is not the purpose.
Thanks for further help in advance.
PeterJanuary 3, 2018 at 10:24 am #892763(And 4. gave custom-class to the color-section: bgfixed))
January 4, 2018 at 7:16 am #893129Hi,
Thank you for the update.
Please create a new thread or post with the site url and the login credentials. We’ll check it there.
Best regards,
IsmaelJanuary 4, 2018 at 4:52 pm #893281See private content part.
Thanks in advance!
PeterJanuary 9, 2018 at 4:45 am #895065Hi,
You have to add the “bgfixed” selector as a class attribute, not as the ID of the section. Please turn on the custom css class field first.
// https://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
Best regards,
IsmaelJanuary 9, 2018 at 7:46 pm #895349Ah yes! I had seen this option before on another website in the past…. Now I remember
Awesome Ismael! Thanks for your help again.
Regards,
PeterJanuary 10, 2018 at 11:12 am #895603Hi,
Thank you for the update. Is it working now? Please let us know and we’ll close the thread.
+1 to @guenni007
Best regards,
IsmaelJanuary 10, 2018 at 5:22 pm #895744Hi Ismael,
On the desktop it is working as expected now (desired nicely effect of fixed images that smoothly replacing eachother). After your fix above I got the images also in the mobile version now. Before the fix the mobile representation contains empty pages. However they are scrolling there instead of staying in place (fixed) as in the desktop version. Resuming: images now visible in mobile version but not with the same effect as in the desktop version.
Can this be realized as well in the mobile version? It should be nice/valuable as it is your own Kriesi default content option.
Thanks in advance and regards,
PeterJanuary 11, 2018 at 7:52 am #896014Hey!
Before the fix the mobile representation contains empty pages. However they are scrolling there instead of staying in place
That’s what the script is for. It’s going to set the background-attachment to scroll so that the background is still visible on tablet devices. Unfortunately, we are not sure why the fixed backgrounds don’t work on iPad or mobile devices.
Regards,
IsmaelJune 27, 2018 at 6:19 am #978250Hi there – unfortunately not working for me. Followed all instructions and desktop still scrolls not fixed… If you have time can you please have look. No child themes used. Thank you
June 27, 2018 at 5:23 pm #978502Hi,
Did you toggle the js/css compression in the Enfold > Performance panel after adding the modifications? You may need to disable the cache and minify plugins temporarily.
Best regards,
IsmaelJune 28, 2018 at 3:33 am #978679Great, that worked – thank you… If you end up working out how to apply the same fixed position to responsive view, please let me know…
June 29, 2018 at 11:17 am #979264 -
AuthorPosts
- The topic ‘playing with new demos – visual artist demo on ipad’ is closed to new replies.