Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #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?

    #1002104

    Hey DimaP,

    Thank you for using Enfold.

    The following solution should fix the issue with the fallback image.

    // https://kriesi.at/support/topic/fullwidth-easy-slider-with-video-asking-for-object-on-mobile/#post-955294

    Let us know if you need more help.

    Best regards,
    Ismael

    #1003110

    Hi, 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.
    #1003382

    Hi,

    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,
    Ismael

    #1003384

    Hi, 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).

    #1003453

    Hi,

    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,
    Ismael

    #1003564

    Hi, 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?

    #1003867

    Hi,

    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,
    Ismael

    #1003886

    Well, 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.
    #1003936

    Hey!

    Try to adjust the margin-top value to -100px or lower.

    Cheers!
    Ismael

    #1003944

    Much 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.
    #1004043

    Hi,

    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,
    Ismael

    #1004049

    Seems 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.
    #1004754

    Hi,

    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,
    Ismael

    #1005153

    Hi, 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.

    #1005354

    Hi 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,
    Victoria

    #1005666

    Hi, Victoria,
    both caching plugins are have been deactivated as of now, cache was cleared …

    #1005879

    Hi,

    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,
    Ismael

    #1005880

    Hi, 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 …

    #1005994

    Hi DimaP,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1007354

    Hi, Victoria,
    should all the changes implemented manually via FTP will be part of the next Enfold update?
    Thank you! )

    #1007731

    Hi,

    No, they’re not going to be included in the next update because they’re quite specific to your site. Please take note of the modification or create a change log.

    Best regards,
    Ismael

Viewing 22 posts - 1 through 22 (of 22 total)
  • You must be logged in to reply to this topic.