• Resolved spdrmnky

    (@spdrmnky)


    Just installed this theme and I love it, but I’m having trouble with YouTube videos.

    This page includes a few videos:
    https://iamrobertbain.com/index.php/work/

    The width is not specified, I’ve just put the URL straight in, and they appear, but at full-screen width, which is not what I want. I’d like them to be to the width of the text column that they’re in, but not the full width of the screen. However, I still need them to be responsive to mobile screens etc so I don’t want to specify a size in px if I don’t have to.

    Is this possible?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author monkey-themes

    (@monkey-themes)

    Hello, in the post edit page, you must define the type of format.
    The post-format must be VIDEO.
    In future versions will be solved video problem for the default post.

    Hi there, spdrmnky!
    The problem is that the iframe that your youtube videos are inside has a defined width of 1200px. If you set the width to 100%, it will only use 100% of the container the iframe is inside.

    Try this css:

    p iframe {
        width: 100%;
    }

    remember to use either a child theme or a custom css plugin. I hope this solved your problem. ??

    Theme Author monkey-themes

    (@monkey-themes)

    We found the problem and fixed it. In the next version there will be no more problems with the videos and the iframes.

    Thread Starter spdrmnky

    (@spdrmnky)

    Thanks both. The page is classed as a “Page” not a “Post”, so I don’t have the option to change the format to video. I’ll see if I can fix it via CSS, otherwise I’ll wait for the update!

    Thanks

    Theme Author monkey-themes

    (@monkey-themes)

    Happy to have helped her.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Width of YouTube videos’ is closed to new replies.