Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

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

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

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: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
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>

Matt

The Turning Gate, http://theturninggate.net

Offline

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

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

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: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
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.


Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB