Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2017-12-05 19:34:57

thmarti
Member
Registered: 2017-05-07
Posts: 3

Wordpress Theme and size of youtube video in blogpost

Hi I  try to insert some Videos in my blog. I created a theme in Backlight with the wordpress-Addon. in the editing mode, the videos are looking well (300 x 169).

If I open the website with the post, the videos are displayed with fullwidth of the post.

Look here: This is the WP-Part of my Website....
http://thomas-marti.ch/blog/2017/12/05/ … k-stewart/

it shoultd displayed like here: (other website with wp)

http://taverne-zum-vollmond.ch/konzerte/

The embed Code in WP is:

<iframe class="alignleft" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/303511927&amp;color=%23ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;show_teaser=true&amp;visual=true" width="300" height="200" frameborder="no" scrolling="no"></iframe>

<iframe src="https://www.youtube.com/embed/f_tIUUtWQc8?rel=0" width="300" height="200" frameborder="0" allowfullscreen="allowfullscreen"></iframe>


Can you help me please?

Thanks, Thomas

Offline

#2 2017-12-05 20:20:25

Matthew
Administrator
From: Seoul, South Korea
Registered: 2012-09-24
Posts: 5,118
Website

Re: Wordpress Theme and size of youtube video in blogpost

Videos will resize to the full width of the container, which helps them to be responsive. If you want them smaller, then wrap them in a div, for example:

<div style="max-width: 300px">
<iframe src="https://www.youtube.com/embed/f_tIUUtWQc8?rel=0" width="300" height="200" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
</div>

Campagna Pictures, http://campagnapictures.com
The Turning Gate, http://theturninggate.net

Offline

#3 2017-12-05 22:17:32

thmarti
Member
Registered: 2017-05-07
Posts: 3

Re: Wordpress Theme and size of youtube video in blogpost

Thank's That helped me. But I think the simpler way is to use the Embeded Video as is. I don't want to play around with the div-tags........at the moment.....

Offline

#4 2017-12-06 00:38:14

Matthew
Administrator
From: Seoul, South Korea
Registered: 2012-09-24
Posts: 5,118
Website

Re: Wordpress Theme and size of youtube video in blogpost

And then your video stops being responsive, and is too large on mobile phones, because it doesn't scale down. The current implementation is as intentionally designed.


Campagna Pictures, http://campagnapictures.com
The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB