Viewing 30 posts - 1 through 30 (of 44 total)
  • Author
    Posts
  • #972971

    Hi there Enfold team!

    I currently have these CSS settings set for my background video. The website is http://circle2media.com/. Unfortunately it made the background video unresponsive on mobile.Can you look into this please? Thank you so much! :)

    #top.home #av_section_1 .av-section-video-bg iframe {
        top: 0 !important;
        -webkit-transform: scale(1) !important;
        -ms-transform: scale(1) !important;
        transform: scale(1) !important;
    }
    
    .home #wrap_all #av_section_1 {
        height: 110vh !important;
    }
    
    @media only screen and (min-width:1920px) {
      .home #wrap_all #av_section_1 {
        height: 110vh !important;
      }
    }
    • This topic was modified 5 years, 10 months ago by Archie.
    #973671

    Hey Archie,

    I think this code should be wrapped in the media query too:

    
    
    
    @media only screen and (min-width:1024px) {
      #top.home #av_section_1 .av-section-video-bg iframe {
        top: 0 !important;
        -webkit-transform: scale(1) !important;
        -ms-transform: scale(1) !important;
        transform: scale(1) !important;
    	}
    
    	.home #wrap_all #av_section_1 {
    	    height: 110vh !important;
    	}
    }
    

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

    #974139

    Hi Victoria!

    Thank you for your response. Unfortunately, after applying the code your sent, it still doesn’t work.

    I added it to Quick CSS first, when it didn’t work, I placed it on custom.css, but both placements didn’t work.

    Please advice.

    Thank you! :)

    #974245

    Hi Archie,

    What do you mean it does not work? The section still unresponsive?

    You need to remove this code first
    Image 2018-06-18 at 14.35.13.png
    and add it wrapped in the media query. Did you do it like that?

    Best regards,
    Victoria

    #974254

    Hi Archie,

    What do you mean it does not work? The section still unresponsive?

    You need to remove this code first
    Image 2018-06-18 at 14.35.13.png
    and add it wrapped in the media query. Did you do it like that?

    Best regards,
    Victoria

    #974300

    Hi Victoria!

    Thank you for your response. Yes, I removed the old code and added a new one wrapped it in media query as follows:

    @media only screen and (min-width:1920px) {
      #top.home #av_section_1 .av-section-video-bg iframe {
        top: 0 !important;
        -webkit-transform: scale(1) !important;
        -ms-transform: scale(1) !important;
        transform: scale(1) !important;
    	}
    
    	.home #wrap_all #av_section_1 {
    	    height: 110vh !important;
    	}
    }
    
    @media only screen and (min-width:1920px) {
      .home #wrap_all #av_section_1 {
        height: 110vh !important;
      }
    }

    This is how it currently looks like on mobile with the code I am using above.

    http://i66.tinypic.com/20rppb6.png

    Thank you! :)

    #975195

    Hi Archie,

    The code you’re adding applies to big screens and not the small ones, you need to add the code for small screens too.

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (max-width: 767px) {
      #top #wrap_all #main  #av_section_1 .avia-no-border-styling {
        height: 300px;
      }
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #977858

    Hi Victoria!

    Thank you for your response. I placed the code on custom.css file, here’s how it looks:

    http://prntscr.com/jzgc9e

    Unfortunately, there is not changes. The video on mobile is still unresponsive.

    Can you look into this?

    Thank you!

    #978041

    Hi Archie,

    I see the missing curly brace there and so the code does not work. You can see the error notice at the bottom.
    Line 32 should have another brace on it.

    Best regards,
    Victoria

    #978913

    Hi Victoria!

    I added the missing curly brace on line 32, unfortunately I still see no changes on the video on mobile.

    https://prnt.sc/k0ecey

    Can you please look into this?

    Thanks!

    #980168

    Hi Victoria!

    Were you able to check on this request?

    Thank you much!

    #980758

    Hi Archie,

    Yes, I have looked, do you want it to be less tall?

    Best regards,
    Victoria

    #981339

    Thank you for your response Victoria!

    Can we make the video responsive so that it shows the entire video on mobile screens?

    #982720

    Hi Archie,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (max-width: 767px) {
    	.avia-builder-el-0.av-minimum-height-100 .container,
    	 .avia-builder-el-0.avia-fullscreen-slider .avia-slideshow, 
    	 .avia-builder-el-0.av-cell-min-height-100 > .flex_cell {
    		height: 250px !important;
    	}
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #983509

    Hi Victoria!

    I added the code first to quick css and then to custom.css, but unfortunately both methods did not work :(

    https://prnt.sc/k4kotz

    Please advise. Thank you!

    • This reply was modified 5 years, 9 months ago by Archie.
    #983548

    Why don’t you use the full-width slider element (not the full-screen one) with your video as one slide.
    you don’t have the need to have caption or buttons. and you can set up the video to loop. The only thing is that the controlelements can’t be completely hidden for vimeo videos. So the user could pause the video. After some time the control elements are hidden on default.
    result see here: https://webers-testseite.de/video-tut/

    you have no content over your video – so no reason to have here a color-section.

    #983600

    Hi,

    Thanks for sharing @guenni007, could that suit your needs @archie?

    Best regards,
    Rikard

    #984105

    Hi,

    I have an mp4 video on the colour section. It plays on the computer, iPad, Android phone but on the iPhone (any browser such as chrome, safari and firefox) it is a still image instead of video.

    How can I fix that?

    Thank you
    Liam

    #984168

    Hi Liam,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #984181

    Hi Victoria,

    Thaks for your reply.

    Here is the my website link: https://havazi.co.uk

    #984579

    Hi Liam,

    Here is a thread for you to consider
    https://kriesi.at/support/topic/colour-section-background-video-safari-does-not-work/#post-305604

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

    #984657

    I tried, but the issue remains.

    Thank you. Liam

    #986606

    Hi,

    I am afraid it seems we are not sure what else to advice on solving the problem…

    Best regards,
    Basilis

    #986651

    last try from my side here: you see that example page with your video: https://webers-testseite.de/video-tut/
    Isn’t that the thing you like to optain?
    You can not have full height and responsiveness. These are conditions that are mutually exclusive

    If you have some content in front of the video – i can understand your request. But without the best way is to use the full-width video slider

    #986669

    Perfect Guenni007:) I will use full-width video slider.

    #986676

    see here responsiveness with color-section – but if content is determing the container height of the color section this will not work.
    With all its settings like transparency and overlay color.
    very important: the color-section has no padding no min height !!!
    and the color-section gets the custom class: resp-container

    https://webers-testseite.de/responsive-videobackground/

    the code is set for that page only – you have to adapt this to your needs – maybe you omit the if-clause
    this comes to functions.php of your child-theme:

    function responsive_background_video(){
    if ( is_page(32661)){
    ?>
    <script>
    (function($){
    	$('body').on('DOMNodeInserted', function(){
    		$('.resp-container iframe').addClass('resp-iframe');
    		$('.resp-container').css({
    		"position": "relative", 
    		"overflow": "hidden" , 
    		"padding-top": "56.25vw"
    		});
    		$('iframe.resp-iframe').css({
    		"position": "relative", 
    		"top": "0" , 
    		"left": "0", 
    		"width": "100vw" ,
    		"height": "56.25vw" ,
    		"border": "0",
    		"-webkit-transform": "scale(1.4)",
    		"-ms-transform": "scale(1.4)",
    		"transform": "scale(1.4)"
    		});
    		$('.resp-container .av-section-color-overlay').css({
    		"top": "-56.25vw" 
    		});
    	});	
    })(jQuery);
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'responsive_background_video');

    this is for 16:9 Videos only

    by the way – very nice trick with DOMNodeInserted

    #986677

    ah – onething i have forgotten: you have to shift the content the same value to top ( to adjust the padding-top of color-section)
    i did it with the column option for the first column: Custom top and bottom margin margin-top : -52vw

    #986832

    Dear guenni007,

    Thank you so much for your help and time. Look like you are most keen to help instead of Kries team.

    I appreciate your help and time!

    I am going to apply all your suggestions to solve the issue.

    Thank you indeed:)

    #987494

    Hi Liam,

    Glad Guenni007 helped you :)

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

    #989094

    Hi Guenni007 and Enfold team!

    Thank you for your response and suggestions. The full-width slider element would be perfect for making videos responsive on mobile, however the full-width slider element does not display videos on mobile.

    Do we have any alternative solution for this?

    Thanks!

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