• Resolved c2medias

    (@c2medias)


    Hi all,
    If I use the shortcode, or if I use the Youtube Iframe, the video is always shown on 100% width.
    Even if the dimensions are written in the <Iframe> code, it’s always 100% width

    Any idea how to solve it ?

    Thanks a lot,

    David

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi David,

    When responsive is enabled, then defined width is used only for aspect ratio reference, while width is set to 100% so you can customize size within your theme or parent object.

    To disable responsive, simply disable that option in shortcode or widget settings, and you’ll get iframe with fixed width as is defined, but it will not be responsive then.

    Kind regards,
    Aleksanadar

    Thread Starter c2medias

    (@c2medias)

    Hi Aleksanadar,

    Thanks for your quick answer.

    On the bottom of this page : http://www.c2medias.fr/lagence/qui-sommes-nous/
    you can see the full width video.
    BUT, the code I used to embed the video is (in the source code) :
    <iframe src=”https://www.youtube.com/embed/Qnnnsy1amVw&#8221; width=”560″ height=”315″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe>

    So I don’t use shortcode, but I still have the “width” problem.

    I disabled the responsive in the widget area (at the bottom of the page), but nothing change (I think there is no link between them).

    Any idea ?

    Thanks,

    David

    Hi David,

    YouTube Channel plugin should not have impact to manually inserted or any other approach for embedding youtube clips to WordPress, as responsive tweak target only iframes inside DIV with class ytc_video_container.

    Can you please confirm that issue you experiencing disappear when you disable YouTube Channel?

    Cheers,
    Aleksandar

    Thread Starter c2medias

    (@c2medias)

    That’s weird… Nothing changes, on the same page (with your plugin deactivated).
    But when I use Firebug and clic on the video, I can see that it’s linked to a class called “ytp-thumbnail-overlay-image” It’s not one of your CSS ?

    I use ‘ytc’ as a prefix, not ‘ytp’.
    Check other plugins you use (video, lightbox, youtube), and your theme. If you simply search for ‘ytp-thumbnail-overlay-image’ in all files on your website, you’ll quick find what is wrong.

    Cheers,
    Aleksandar

    Thread Starter c2medias

    (@c2medias)

    Hi,
    I will take a look about that (I didn’t have the time yet).
    It’s not your plugin which is responsible of it. I think there is something weird in the CSS of the website. All code is perfect for the Youtube video embed. But it seems there is a conflict with something else.

    Thanks for your time, and continue to improve the plugin, it’s perfect !! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Problem with Iframe width’ is closed to new replies.