Test of youtube embeds
-
@phenomlab Do you need to be in the plugins folder to run that, or does it automatically install the plugin into the plugins folder?
@Madchatthew no, you just need to be in NodeBB root
-
-
This is a nice embed plugin but…the size of the embed is very small. I used one in the past that was bigger but cannot remember which one
@Sampo2910 nothing that CSS can’t fix
-
@Sampo2910 nothing that CSS can’t fix
@phenomlab I have the exact same issue.
-
@Sampo2910 nothing that CSS can’t fix
@phenomlab Can you enlighten me with some please
Not in my skill set.
-
@phenomlab Can you enlighten me with some please
Not in my skill set.
@Sampo2910 @jac you just need to target the
iframe
itself (be aware that this will affect all other iframes, so you may want to be more specific if need be). Something like this will work - just play with theheight
andwidth
values to get the desired result.iframe { height: 400px; width: 400px; } -
@Sampo2910 @jac you just need to target the
iframe
itself (be aware that this will affect all other iframes, so you may want to be more specific if need be). Something like this will work - just play with theheight
andwidth
values to get the desired result.iframe { height: 400px; width: 400px; }
@phenomlab Perfect …Thank you.
-
@Sampo2910 @jac you just need to target the
iframe
itself (be aware that this will affect all other iframes, so you may want to be more specific if need be). Something like this will work - just play with theheight
andwidth
values to get the desired result.iframe { height: 400px; width: 400px; }
@phenomlab said in Test of youtube embeds:
be aware that this will affect all other iframes, so you may want to be more specific
Is there a way that we can only be specific to this embed?
-
@phenomlab said in Test of youtube embeds:
be aware that this will affect all other iframes, so you may want to be more specific
Is there a way that we can only be specific to this embed?
@Sampo2910 yes, you could try
iframe[src*="youtube"] { height: 400px; width: 400px; } This is of course an example that looks for “youtube” in the
src
string. You’d need to adapt it as necessary. The only other way possible here would be to assign adiv
ID to the container but that would require a change to the underlying plugin code.If you need to apply this to mobile only views, it’ll be to be
@media (max-width: 767px) { iframe { height: 370px; width: 360px !important; } } -
@Sampo2910 yes, you could try
iframe[src*="youtube"] { height: 400px; width: 400px; }
This is of course an example that looks for “youtube” in the
src
string. You’d need to adapt it as necessary. The only other way possible here would be to assign adiv
ID to the container but that would require a change to the underlying plugin code.If you need to apply this to mobile only views, it’ll be to be
@media (max-width: 767px) { iframe { height: 370px; width: 360px !important; } }
@phenomlab Perfect!!! Many thanks.
Did this solution help you?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (ether email, or push notification). You'll also be able to save bookmarks, use reactions, and upvote to show your appreciation to other community members.
With your input, this post could be even better 💗
RegisterLog in