Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › How to Center-align Embeded AWS S3 Video?
- This topic has 7 replies, 3 voices, and was last updated 8 years ago by
Sonic.
-
AuthorPosts
-
September 4, 2017 at 5:58 am #14385
Sonic
MemberHi,
I’m using the shortcode [wp_lightbox_embed_protected_s3_video name=”test-video.mp4″ bucket=”my-videocontainer” width=”500″ height=”400″] to embed a video from my AWS S3. It is always aligning to the left. I want it to be center-aligned. How do I do this?
Thanks.
September 4, 2017 at 11:52 pm #76373admin
KeymasterThe following posts should show you how you can do center alignment.
Lightbox Ultimate – How do you align shortcode embed images horizontally
September 5, 2017 at 3:28 am #76374wpCommerce
ModeratorSeptember 5, 2017 at 4:03 am #76375Sonic
MemberHi,
I checked the links you mentioned and I’ve actually seen them before I posted.
As you can see from my post, I am not using any anchor text or image. I am using an embed (video) short code.
Here’s the shortcode I’m using:
wp_lightbox_embed_protected_s3_video
How do I center-align (horizontally) on a page if I am using this shortcode?
I tried the methods mentioned on the links you provided. I did the following steps:
1. I put a css inside wp_lightbox_ultimate_custom.css with the following:
.lightbox_ultimate_mine_s3
{
display: block;
margin-left: auto;
margin-right: auto
}
2. I added the class reference to the shortcode as follows:
[wp_lightbox_embed_protected_s3_video link=”https://s3.amazonaws.com/myPrivateBucket/myVideo.mp4″ width=”640″ height=”480″ class=”lightbox_ultimate_mine_s3″]
The result is still the same. The embedded video is not aligning to the center (horizontally) of the page.
September 5, 2017 at 11:56 pm #76376admin
KeymasterPlease share the URL of the page where you have the video so we can inspect it in our browser.
September 6, 2017 at 1:19 am #76377Sonic
MemberHi, here’s the link [http://bit.ly/2xNEuEQ]
September 6, 2017 at 6:11 am #76378wpCommerce
Moderator@Sonic, This CSS worked for me:
.lightbox_ultimate_mine_s3 {
display: block;
text-align: center;
margin-left: auto;
margin-right: auto;
}However, There is a minor bug in the shortcode where the class attribute is not being passed to the div that contains the video. We have fixed it and sent you the updated copy via email. Let me know if you don’t receive it.
September 6, 2017 at 7:57 am #76379Sonic
MemberOk. Got it.
-
AuthorPosts
- You must be logged in to reply to this topic.