Skip Navigation

[Resolved] I can't display my embeded Youtube video with properly height / width

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 6 replies, has 2 voices.

Last updated by Jaime 5 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1193683

I am trying to: Display an embeded Youtube video with a custom width / height

Link to a page where the issue can be seen: Working locally

I expected to see: A "normal" size of the embeded video

Instead, I got: Now, I see a huge video and I can't resize it

(I've seen this ticket, but still not working... https://toolset.com/documentation/customizing-sites-using-php/functions/#embedded-media)

Now I've got this and "enlace-a-video-experiencia-guia" is an Embed Field

<div class="row">
<h3><td>[types field="produccion-experiencia-guia"][/types]</td></h3>
<div class="col-sm-8">
Año: [types field="ano-experiencia-guia"][/types]<br>
Productora: [types field="productora-experiencia-guia"][/types]<br>
Tipo de producción: [types field="tipo-de-produccion-experiencia-guia"][/types]<br>
Nacionalidad: [types field="nacionalidad"][/types]<br>
Cargo: [types field="cargo-experiencia-guia"][/types]<br>
</div>
<div class="col-sm-4">
[types field="enlace-a-video-experiencia-guia" height="100" width="200"][/types]
</div>
</div>

#1193753

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hola Jaime

What have you pasted into the field when editing the post?

I just tried this on my local test site and it was working as expected, this is what I inserted into the template:

[types field='youtube-video' width='600' height='600'][/types]

And this is what I is actually saved in the field itself:

<em><u>hidden link</u></em>
#1193764
Captura de pantalla 2019-01-31 a las 14.48.44.png

Hola Nigel (se me había olvidado que te podía escribir en español!)
🙂

Estoy insertando un enlace de youtube. Como el tuyo.
Pero me sigue pasando lo mismo.

Te dejo una captura de pantalla de lo que me aparece.

Puede ser algo del theme?
Si cambio a Twenty Fifteen , parece que responde...
🙁

#1193819

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hola Jaime

Puede ser.

¿Qué pasa con el tema tuyo si insertas el video directamente en el contenido de una entrada así?

[embed width="200" height="100"]<em><u>hidden link</u></em>;
#1193826
screenshot.jpg

No lo muestra bien. La pone a pantalla completa.

#1193837

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Eso, es el tema.

El campo embed utilice el funcionamiento estándar de WordPress para mostrar los videos (https://codex.wordpress.org/Embeds), y si no funciona lo normal de WordPress no funcionará bien el campo de Types.

Te recomiendo consultar con los autores del tema.

#1193857

My issue is resolved now. Thank you!