On our page (Biblista odpowiada – Lumen Vitae) we are using block editor and there YouTube player blocks. The problem is that they do not center. Why? How to overcome this?
Hello,
Videos are tricky to center as they don’t apply to basic CSS rules.
You can use this CSS code to center your videos:
.wp-block-embed.is-type-video.is-provider-youtube.wp-block-embed-youtube {
display: flex;
justify-content: center;
}
Where and how do I put it so that it plays nicely and doesn’t get overwritten by theme or other updates?
You can add this code in the Customizer - Additional CSS. It won’t get lost during the theme updates. But before you can do that, we should handle the error you are facing with the customizer we discussed in the other thread.
I confirm, this worked. Thanks!