YouTube Video iFrame or Embedded Link Not Centering on Page for Hello Maker
I’ve created the following blog post but the issue applies to all posts where I’ve both attempted embedding a video link or inserting its iFrame into the post and using the block’s menu bar to center it on the page. They never center. All videos remained aligned to the left. I checked the code and it reads “align:” “center” but the page still displays the video incorrectly align on all browsers. This is at the Blog.
At my WooCommerce store where Gutenberg is not in use and the legacy editor is what I’m using to load content, all my videos are centered in the product listings as I’ve chosen them to be.
Can you please help explain what’s going on here?
Cheers,
Art
I’m not sure why Gutenberg does that will smaller videos. There are still kinks that need to be worked out with it. You can add this to your additional css
.wp-block-embed {
text-align: center;
}
and that should center the video.
Hello – I have the Hello Maker theme as well, and my videos will not center either. I have added this block to additional css, but videos are still left justified. How can I fix this? Thank you!
Please open a new question and provide your URL.
Please login or Register to submit your answer