Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How to Center-align Embeded AWS S3 Video?

by

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 7 years, 9 months ago by Sonic.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 4, 2017 at 5:58 am #14385
    Sonic
    Member

    Hi,

    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 #76373
    admin
    Keymaster

    The following posts should show you how you can do center alignment.

    Lightbox Ultimate – How do you align shortcode embed images horizontally

    https://support.tipsandtricks-hq.com/forums/topic/wp-lightbox-ultimate-image-will-not-center-on-webpage-remains-left-aligned

    September 5, 2017 at 3:28 am #76374
    wpCommerce
    Moderator

    https://support.tipsandtricks-hq.com/forums/topic/lightbox-ultimate-how-to-add-css-styles-to-a-lightbox-anchor-text-or-image

    September 5, 2017 at 4:03 am #76375
    Sonic
    Member

    Hi,

    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 #76376
    admin
    Keymaster

    Please 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 #76377
    Sonic
    Member

    Hi, here’s the link [http://bit.ly/2xNEuEQ]

    September 6, 2017 at 6:11 am #76378
    wpCommerce
    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 #76379
    Sonic
    Member

    Ok. Got it.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ