Size of Youtube and Vimeo players in The Columnist
-
Is there some CSS code for specifying the exact size of embedded Youtube and Vimeo players in The Columnist, so that the size doesn’t need to be specified in each shortcode?
The blog I need help with is: (visible only to logged in users)
-
I’m not sure if that would work, but we can try it. Can you please link to an example post?
Also, if you are inserting the videos at full width and you have adjusted the main column content width via CSS, make sure you have also adjusted the content width setting in the Appearance → Themes → Customize → CSS panel to match.
-
I’ve been slogging through and finally came across the relevant command or declaration as regards Youtube — why these things are not readily made available by WordPress or others (as though they were arcana) passes all understanding.
It’s “.youtube-player.”
Currently I’m hunting for the correlate command for Vimeo, but haven’t yet found it. (And for the Soundcloud widgets, too.)
This post includes both Youtube and Vimeo videos:
Whereas I’ve dealt with the Youtube ones, you’ll notice that the Vimeo one is still governed by the coding I’ve put in for Iframes, which now governs e.g. the (relatively few) Bandcamp players I’ve embedded on my site — and I’m probably going to convert the Soundcloud widgets I have embedded to the Iframe format as well. But because I’ve styled the Iframes with a certain optical effect, I need to find the code for the Vimeo players (which are also Iframes) in order to counteract it for them.
(The categories and tags for single posts I did manage to configure — though not yet completely. I’ve been trying to make enough sense of Firebug to be able to identify the elements I still want to alter, but without success. Do you happen to know the CSS handles of these elements?)
-
One other thing: if you’re referring to the box with a number in pixels on the CSS control panel, for setting a width for videos, etc., if the content width has been changed from the standard, I’ve tried that too — I mean, I experimented on an existing post, removed the Youtube short codes, saved the changed post, and then reinserted them, saving it again: but it did not display any differently than before. I realize that this feature (as is said explicitly) cannot be expected to effect changes in existing posts, but it seems that it does not work at all, at least for The Columnist theme.
-
I’ve been slogging through and finally came across the relevant command or declaration as regards Youtube — why these things are not readily made available by WordPress or others (as though they were arcana) passes all understanding.
Because using that selector is not the best way to adjust those (or at least not common).
One other thing: if you’re referring to the box with a number in pixels on the CSS control panel, for setting a width for videos, etc.,
Exactly, the videos should get inserted at content width size (set in the Appearance → Themes → Customize → CSS panel). That should work so long as you haven’t added any other specific size rules, like the Vimeo one currently has in the example you linked or with some other CSS.
Let’s step back. What is your end goal exactly? Is it to make video embeds the same size as the content width, or a different size?
- The topic ‘Size of Youtube and Vimeo players in The Columnist’ is closed to new replies.