Home Forums Weaver Xtreme Theme Weaver Xtreme Theme & Plus: video shortcode alignment (want it center)

Topic Resolution: Resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Nele 1 week, 4 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #51801

    Nele
    Participant

    Homepage: https://developmentstudies.de/developmentstudies-de/

    Admin: bR93
    Password: 5n(#94h

    I have insert a video (mp4) and the shortcode is: [video width="854" height="480" mp4="URL"][/video]
    I want it to be aligned center. So I put into the per page style:  .wvrx-video {float:center !important;}
    It does not work and I couldn’ t find something about this issue in the forum. So what can I do?

     

    #51804

    scrambler
    Moderator

    First there is no such thing as float:center 🙂

    Second, the [video] shortcode is a WordPress shortcode, so it has nothing to do with the wvrx-video container.

    Inspecting you page with the browser developer tools, I see the WP video shortcode has a container with the class .wp-video

    So you can center that with the rule

    .wp-video {margin:0 auto;}

    If you have several on various pages, you can limit the rule to that page with

    .page-id-175 .wp-video {margin:0 auto;}

    #51809

    Nele
    Participant

    Thank you @scrambler for the correct rule and the opportunity to learn something more! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.