-
AuthorPosts
-
August 3, 2015 at 4:37 pm #348932
drplasticineParticipantHi, I have attached an image. It is an example of how YouTube videos appear on my blog post on the mobile version of my website. This is my question, is there anything I can do to make the video thumbnails display more like they do on a desktop? The video thumbnail appears squished. Thanks for your help.
Morgan
My website: MorganGanem.com
August 3, 2015 at 4:38 pm #348934
drplasticineParticipantImage
August 3, 2015 at 4:50 pm #348946
drplasticineParticipantAugust 3, 2015 at 4:51 pm #348950
drplasticineParticipantAugust 3, 2015 at 8:38 pm #349105
John EzraMemberHi there,
Thanks for writing in and sorry you are experiencing the issue. Would you mind pointing us to the exact location of the issue. We checked your videos page and thumbnails looked fine on desktop and mobile. The videos resize automatically.

Hope this helps – thanks!
August 4, 2015 at 12:24 am #349256
drplasticineParticipantHi, thank you for your response. The place where the thumbnails are not showing up correctly are specifically on my blog pages.
Here is an example: http://morganganem.com/myrunvideo/
Thank you.
August 4, 2015 at 1:08 am #349289
John EzraMemberHi there,
Thanks for updating the thread! This is because the embed code is none responsive. Try the following workaround:
Enclose your YouTube Embed code within this structure:
<div class="videoWrapper"> <!-- Copy & Paste embed code from YouTube Here--> </div>It should look like this:
<div class="videoWrapper"> <iframe width="560" height="315" src="https://www.youtube.com/embed/kjK5kdP88CA" frameborder="0" allowfullscreen></iframe> </div>Then you need to add this under Custom > CSS in the Customizer or in your child theme’s style.css file.
.videoWrapper { position: relative; padding-bottom: 56.25%; /* 16:9 */ padding-top: 25px; height: 0; } .videoWrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }Hope this helps – thanks!
August 5, 2015 at 12:52 pm #351046
drplasticineParticipantThat worked! Thanks very much for your help 🙂
August 5, 2015 at 2:27 pm #351133
Prasant RaiModeratorYou are most welcome 🙂 .
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-348932 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>

