Home › Forums › Gillion Theme › Center video in post
Home › Forums › Gillion Theme › Center video in post
How to centralize the video? I’ve tried everything in css and it does not. Do you have a button for this?
Hi @juniormartian,
I hope you are well today and thank you for your question.
Could you please tell me how you have added the video in the post and share me the page URL from your site where it is displaying so that i can help you to achieve it?
Best regards,
Shufflehound team
My project is in “localhost”. I just copy the link from youtube and put it in the post. I know you have a “shortcode”, but it puts the post on 100% of the page and I did not want to leave the video so wide.
Then please refer the information posted in the following pages to centre align video.
https://premium.wpmudev.org/blog/how-to-center-a-video-in-wordpress/
http://www.faqtube.tv/center-align-youtube-video-embed-wordpress/
https://wphowto.net/how-to-align-a-wordpress-video-in-the-middle-of-the-page-2187
I tried to add <div style=”text-align: center;”> XXX </div> but didn’t work.
Which css should I edit? Code after add embed like this.
<!– wp:core-embed/youtube {“url”:”https://www.youtube.com/watch?v=gl1aHhXnN1k”,”type”:”video”,”providerNameSlug”:”youtube”,”className”:”wp-embed-aspect-16-9 wp-has-aspect-ratio”} –> <figure class=”wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio”><div class=”wp-block-embed__wrapper”> https://www.youtube.com/watch?v=gl1aHhXnN1k </div><figcaption>Caption</figcaption></figure> <!– /wp:core-embed/youtube –>