Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #891593

    Hi,

    since 2 weeks I have this problem: in the sidebar and in the footer the videos don’t display full size despite the correct code inserted in the widgets.
    Footer and Sidebar examples
    You can check it any page (post) with the sidebar and footer (http://www.newpointdeview.com/pro-en/intercultural-compentence/cultural-analysis-economic-paradoxes/).

    Here’s an example of my code added to the widget:

    <iframe src="https://www.youtube-nocookie.com/embed/videoseries?list=PLYDYp-UIQP-JtiOard1fcHQb_th4aHshR" width="390" height="219" frameborder="0" allowfullscreen=""></iframe>
    
    <a href="https://www.youtube.com/user/NewPointDeView"><img class="aligncenter wp-image-12151" style="padding: 0;" src="http://www.newpointdeview.com/wp-content/uploads/Subscribe_Button-logo.png" alt="" width="120" height="37" /></a>

    I’ve already deactivated all plugins, it hasn’t changed anything.
    Any idea where the issue comes from ?

    #891644

    Hey Anton,

    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

    
    iframe, object, embed {
        min-height: 220px;
        min-width: 386px;
    }
    

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

    #891656

    Hi,

    unfortunately this code is unsuitable. It fixes the issue in the footer, but distroyes in the sidebar, which is thinner.
    On the other hand, I’ve found that the code iframe, object, embed {max-width: 100%;} is apparently not working properly.

    I don’t think a simple css code will resolve this problem, because the discribed issue appeared shortly after the last Enfold’s update. Before, the videos in the footer and the sidebar were appearing correctly.

    • This reply was modified 6 years, 11 months ago by Anton.
    #892026

    Hello anyone …

    #892208

    Hi,

    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

    
    #footer iframe {
        min-height: 220px;
        min-width: 386px;
    }
    .sidebar iframe {
        min-height: 170px;
        min-width: 320px;
    }
    
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #892242

    Hi,

    the code you gave is adapted only to the big screens, but not for iPads and mobile devices. Putting a min-height or width is not a solution.

    Why the code iframe, object, embed {max-width: 100%;} doesn’t work anymore??
    Originally it’s supposed to adjust these “objects” automatically to the necessary width keeping the height ratio.

    #892373

    Hi,
    Please try:

    iframe, object, embed {width: 100% !important; max-width: 100%!important; }

    Please clear any cache plugin and your browser cache.

    Best regards,
    Mike

    #895041

    Thank you,

    but now the issue is with the height (check this or here)

    #895052

    Hi,
    Please try adding:

    .textwidget iframe {width: 100% !important; max-width: 100%!important; height: 210px!important;}

    Best regards,
    Mike

    #895728

    Hi,

    the solution like height: 210px!important; is not convinient, coz the width (and thus the height) in the sidebar and footer is different. So it’s not adapted.
    height: auto; or max-height: auto; doesn’t work neither.
    Even if width: -webkit-fill-available; can replace width: 100% !important;, the same for height: -webkit-fill-available; doesn’t work.

    Any other ideas ?

    #897290

    Hi,

    You can define the height of the footer and sidebar videos separately.

    .sidebar .widget_text iframe {
        height: 210px;
    }
    
    #footer .widget_text iframe {
        height: 300px;
    }

    Adjust the value as necessary.

    Best regards,
    Ismael

    #903608

    Hi,
    as I already mentioned, defining the precise height in this particular case is NOT adapted. Because depending on the device showing the page the height and the width are obviously different, that’s why it is necessary to automatize the height of these i-frames.
    This is the actual code I use following your suggestions:

    /*Video Youtube footer and sidebar adjustment*/
    iframe, object, embed {width: 100%!important;}
    .sidebar .widget_text iframe {height: 180px;}
    #footer .widget_text iframe {height: 220px;}

    This is convenient for a PC screen, but not for mobile and/or iPad screens.

    So, can you advise me how to automatize the height?

    #904042

    Hi,

    You can use additional css media queries to alter the size values for different screen sizes.

    // https://www.w3schools.com/cssref/css3_pr_mediaquery.asp

    Best regards,
    Ismael

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