Archived topic
Video Block / CSS display: none
3 replies · Started by Jan on November 28, 2021
Hi David,
I'm using the WP standard video blocks to embed both youtube and self-hosted video. For YouTube Videos I need to remove the branding (see screenshot), but using the modestbranding-parameter is not working.
Alternatively, I have tried the display: none option in the Customizer using the following CSS:
/* WP video-block - w/o branding */
.ytp-chrome-top {
display: none;
}
.ytp-impression-link {
display: none;
}
Any chance you can spare a minute and let me know what I'm missing in the CSS?
Thanks,
Jan
Hi there,
CSS style can only be applied to an iFrame if the stylesheet is on the origin server. You cannot style them remotely using CSS. You could use Javascript but then i think you may be infringing on YouTubes policies. Unfortunately not much i can suggest here.
Hi David,
we ended up using a different video sharing service.
Best,
Jan
Glad to hear you found a solution!