-
AuthorPosts
-
August 26, 2018 at 8:15 pm #1001995
Hello,
I’m using self-hosted video background at my Slide 1 within the Fullwidth Easy Slider, and plan to use different video backgrounds at Slides 2 & 3. What I have done so far I have encoded the original hd1080 .mov into .mp4 by YouTube, and made all the turnings inside the Slide 1, meaning put preview/fallback image url also Mobile Fallback Image url from YouTube.
Now, Slide 1 works at a charm at my desktop, but at mobile (iPhone 7) it shows white-colored area instead of, also some kind of word as [object … – further characters I cannot see as another element covers this appear – neither my static image nor my YouTube video.
I saw Ismail has suggested some css in the relative post that doesn’t work with me, also as far as I plan to have 3 x Slides, how could I address various fallback IF css will finally work out?
So, that’s the point, might be the community will make some suggestion?August 27, 2018 at 3:14 am #1002104Hey DimaP,
Thank you for using Enfold.
The following solution should fix the issue with the fallback image.
Let us know if you need more help.
Best regards,
IsmaelAugust 29, 2018 at 12:44 pm #1003110Hi, Ismael,
I went there, and found 2 piece of code, the big one, and just a smaller string… ) I guessed, the big one I should put into my functions.php, but what about another one? May you suggest here the final working code please to test?
Also, I saw within the slider a comment about the fallback Lazy Loading – does it mean Enfold’ Lazy Loading option, or it means some cache plugin same option, e.g. WpRocket or so? Even having had my .mp4 video just a small one, ~ 8MB (but this is actually re-encoded via YouTube original HD video of 1920 x 1280, it comes to display a bit slowly calling for the fallback image to be shown instead, while the video is loading.
Is this the normal situation when the internet connection becomes purer sometime, or this is coz the Lazy Loading option switched on somewhere?
P.S. In parallel to the above, do you suggest some .css to ensure the slider doesn’t rescaling the fallback image from one original size, as in my case, GtMetrix decreases the ranks of my page suggesting so, FYI:
Serve scaled images / The following images are resized in HTML or CSS. Serving scaled images could save 75.7KiB (100% reduction).
https://domenname.com/wp-content/XXXXXX.jpg is resized in HTML or CSS from 1500×630 to 0x0. Serving a scaled image could save 75.7KiB (100% reduction).
- This reply was modified 6 years, 3 months ago by DimaP.
August 30, 2018 at 6:42 am #1003382Hi,
Thanks for the update.
Replace the config-templatebuilder > avia-shortcodes > slideshow > slideshow.js file with this code.
// https://pastebin.com/9Dk7PFsU
Don’t forget to toggle the Enfold > Performance > File Compression settings after replacing the file.
Yes, the video quality depends on the connection speed. If I am not mistaken, there’s a setting somewhere in the youtube panel where you can force the video to play on the highest quality every time.
Best regards,
IsmaelAugust 30, 2018 at 6:52 am #1003384Hi, Ismael,
thanks for the update too, you meant the hard-coding should be done w/ that newest .js? Whether it will be replaced by the standard one during the next/following update, so I will need to replace the code agai and again? Or the change will be implemented into the update, so I shouldn’t be worry about?Also, what about my 2nd question, I put in P.S. meaning this one, seems you didn’t catch one neither,
—
P.S. In parallel to the above, do you suggest some .css to ensure the slider doesn’t rescaling the fallback image from one original size, as in my case, GtMetrix decreases the ranks of my page suggesting so, FYI:
Serve scaled images / The following images are resized in HTML or CSS. Serving scaled images could save 75.7KiB (100% reduction).
https://domenname.com/wp-content/XXXXXX.jpg is resized in HTML or CSS from 1500×630 to 0x0. Serving a scaled image could save 75.7KiB (100% reduction).
August 30, 2018 at 9:23 am #1003453Hi,
The changes in that file are going to be included in the next patch. You have to add it manually for now.
If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
Best regards,
IsmaelAugust 30, 2018 at 1:28 pm #1003564Hi, Ismael, the issue seems to be fixed, one more beforehand we will close the case: would you check the screenshot that is done @ iPhone, as you can see, the “pink” element covers the slider also buttons within @ mobile whilst @ desktop it looks fine, so how can I fix the issue to ensure website looks brilliant?
August 31, 2018 at 3:52 am #1003867Hi,
That is the column offset. You can adjust that for mobile view. Just add this css code.
@media only screen and (max-width: 1024px) { #agency .flex_column_table.av-equal-height-column-flextable.-flextable { margin-top: -50px !important; } }
Best regards,
IsmaelAugust 31, 2018 at 4:39 am #1003886Well, looks better, anyway how to put that 1st pink block a bit closer to the slider? As I tried to change “-50px” myself w/ no success. Also let’s see of what’s happened w/the slider itself – the only horizontal view is almost normal, the buttons are there, all the vertical slides becomes purer, not showing the full slider w/ buttons… ? So, another .css fix please?
- This reply was modified 6 years, 3 months ago by DimaP.
August 31, 2018 at 7:26 am #1003936August 31, 2018 at 7:45 am #1003944Much better, but the slides’ height still covers the button in the vertical layout.. So, how to increase slides’ height ?
- This reply was modified 6 years, 3 months ago by DimaP.
August 31, 2018 at 12:02 pm #1004043Hi,
Thanks for the update.
Try to decrease the font size of the title and the caption and then increase the height of the slider.
@media only screen and (max-width: 1200px) { #top .av-video-slide .avia-slideshow-inner { min-height: 50vh; } .avia_transform .av_slideshow_full .active-slide .avia-caption-title, .avia_transform .av_fullscreen .active-slide .avia-caption-title { font-size: 24px !important; } .avia-caption-content p { font-size: 15px !important; } }
Best regards,
IsmaelAugust 31, 2018 at 12:06 pm #1004049Seems the code doesn’t work (same height, I tried even do – no change
@media only screen and (max-width: 1200px) {
#top .av-video-slide .avia-slideshow-inner {
min-height: 150vh !important;
}- This reply was modified 6 years, 3 months ago by DimaP.
September 3, 2018 at 3:25 am #1004754Hi,
Thanks for the update.
This is what I get when I add the code.
// https://imgur.com/a/n2Qblvq
I just added it on the browser inspector so the video size is a little bit off on the screenshot.
Best regards,
IsmaelSeptember 3, 2018 at 8:35 pm #1005153Hi, Ismael,
nope, you’ve just sent me the Logo which is working as charm now thanks to the guys. Anyway, initial thread was about the slider, so I don’t see the buttons at each slide at mobile (iPhone) … I just sent you credentials to the admin, so may you please check of what’s going on there on mobile devises ? The goal is to make the slider’s buttons visible … Thank you.September 4, 2018 at 10:12 am #1005354Hi DimaP,
Can you disable caching and minification for now?
It’s too much text for the slider height on mobile, will need to make it smaller.
Best regards,
VictoriaSeptember 4, 2018 at 3:57 pm #1005666Hi, Victoria,
both caching plugins are have been deactivated as of now, cache was cleared …September 5, 2018 at 5:34 am #1005879Hi,
nope, you’ve just sent me the Logo which is working as charm now thanks to the guys.
No, I didn’t. Please check the screenshot again. We adjusted the code on the Quick CSS field. Please purge the cache before checking the page.
#top .avia-slideshow-inner, #top .avia-slide-wrap, #top .avia-slideshow li { min-height: 50vh !important; } #top .avia-slideshow li { background-size: cover; background-position: center center; } #top .av_slideshow_full li img { visibility: hidden; } .avia_transform .av_slideshow_full .active-slide .avia-caption-title, .avia_transform .av_fullscreen .active-slide .avia-caption-title { font-size: 24px !important; } #top .avia-caption-content p { font-size: 15px !important; }
We also included this script in the functions.php file:
add_action('wp_footer', 'ava_custom_mobile_slide_background'); function ava_custom_mobile_slide_background(){ ?> <script type="text/javascript"> (function($) { var isMobile = false; if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && 'ontouchstart' in document.documentElement) { isMobile = true; } else { isMobile = false; } console.log(isMobile); if(!isMobile) return; $('.avia-fullwidth-slider div li').each( function(e) { $(this).css('background-image', 'url('+ $(this).data("mobile-img") + ')'); }); $('.avia-fullwidth-slider div li').on( 'click', function(e) { var link = $(this).find('img').parent('a'); link.trigger('click'); }); })(jQuery); </script> <?php }
Best regards,
IsmaelSeptember 5, 2018 at 5:40 am #1005880Hi, Ismael, indeed this looks MUCH-MUCH better! Thanks for that, u r the ROCK! )
P.S. I also sent you FTP credentials in the separate thread based on your request …September 5, 2018 at 10:52 am #1005994Hi DimaP,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 8, 2018 at 6:02 am #1007354Hi, Victoria,
should all the changes implemented manually via FTP will be part of the next Enfold update?
Thank you! )September 10, 2018 at 2:32 am #1007731 -
AuthorPosts
- You must be logged in to reply to this topic.