• Resolved Flea777

    (@flea777)


    Using the code:

    <iframe title="YouTube video player" src="https://www.youtube.com/embed/UZ-6iW2xJCg" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

    displays the video as it should, but at the wrong size.

    If you look at https://gskyertelescopes.net/gskyer-telescope-faqs/ under “Can I use this telescope for astrophotography?” the video is the full width of the container. If you look on this page: https://gskyertelescopes.net/gskyer-telescope-manuals/ you will see I used the same code with a different video name but the same size constraints and it displays as I want, smaller than the width of the container.

    Am I doing something wrong? I read where you sent someone else here having video issues to https://prnt.sc/gqJui0cZOL1d and that is the same code I am using, as far as I can see anyway.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Bayejid Ahmed

    (@bayejid00)

    Hi @flea777,

    Thanks for sharing in detail. We got your point. The video width is getting 100% because of responsive video CSS which is used to display the video in accordion content for all devices perfectly.

    If you want to display the video smaller than the width of the container, you can do that by using a piece of inline CSS code in the accordion item’s text editor. Please take a look at the screenshot. Adjust the max-width value as per your need.

    And use the following custom CSS in the plugin’s custom CSS field. See the screenshot for a better understanding.

    .ea-youtube-wraper {
        padding-top: 0;
    }

    Please let us know if the above CSS works for you or not.

    Thread Starter Flea777

    (@flea777)

    Yes, that worked although it worked without adding the CSS you supplied. I did add the CSS, but that seemed to have no effect so I am not sure what it is supposed to do.

    Either way, the video is the correct size now, thank you very much!

    Plugin Support Bayejid Ahmed

    (@bayejid00)

    Hi @flea777,

    Glad to hear that the video is in the correct size now. Thanks for appreciating us.

    If you are happy with the plugin and support, please share your experience in the plugin’s review section.

    Your each and every word will motivate us to keep doing the hard work.

    Have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Video will not display correct size’ is closed to new replies.