Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. 3:4 Videos get chopped

3:4 Videos get chopped

Scheduled Pinned Locked Moved General Discussion
9 Posts 2 Posters 928 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    E
    eplateau
    wrote on last edited by
    #1

    The original video to be uploaded:
    https://www.dropbox.com/scl/fi/4b8aohg6zj2flqhqto1b9/Web-D-15.mp4?rlkey=lzbcnw1b3eyna4br18xlmfa37&dl=0

    The result:
    https://www.dropbox.com/s/4ywrd7cbvxr88fq/Screen Recording 2024-03-03 at 16.04.13.mov?dl=0

    I remember something happened previously with the 9:16, and got sorted with this line of code:

    Screenshot 2024-03-03 at 16.10.22.png

    .type-elementgrid .html5video .ph{
    padding-bottom: calc(16 / 9 * 100%)!important;
    }

    .portrait .ph{
    

    padding-bottom: 177.77777777%!important;
    }

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      sometimes, it happens very rarely, wordpress just doesn't recognize the correct dimensions of videos.

      In the gridder, right click on the video-element and choose "set html class and id". For "html class" enter:
      autosize-video

      Enter the custom css in "lay options" -> "custom css & html":

      .autosize-video video{
          position: relative;
      }
      .autosize-video .ph{
          padding-bottom: 0!important;
      }
      
      1 Reply Last reply
      0
      • E
        E
        eplateau
        wrote on last edited by
        #3

        Nada. Same thing... :S

        https://eduardogi.com/luke-pina

        1 Reply Last reply
        0
        • arminunruhA
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          oh

          try this:

          .autosize-video video{
              position: relative;
          }
          .autosize-video .ph{
              padding-bottom: 0!important;
          }
          .autosize-video video{
          aspect-ratio: auto!important;
          }
          
          1 Reply Last reply
          0
          • E
            E
            eplateau
            wrote on last edited by
            #5

            winner. Thanks!... I wonder if we could fix it too on the carousel like this one: https://eduardogi.com/king-khamilion/

            1 Reply Last reply
            0
            • arminunruhA
              arminunruhA
              arminunruh
              Global Moderator
              wrote on last edited by
              #6

              can u maybe just like export the video in a different size or format or sth using the app handbrake for example and see if wordpress can then recognize the size correctly?

              1 Reply Last reply
              0
              • E
                E
                eplateau
                wrote on last edited by
                #7

                I did indeed. But seems to be the view port or something like that... I can live without it tho... but yep. it is a thing.

                1 Reply Last reply
                0
                • arminunruhA
                  arminunruhA
                  arminunruh
                  Global Moderator
                  wrote on last edited by
                  #8

                  yea for the carousel its s a little difficult to make this work mmh

                  1 Reply Last reply
                  0
                  • arminunruhA
                    arminunruhA
                    arminunruh
                    Global Moderator
                    wrote on last edited by
                    #9

                    Hey i know this is an old post, but i created a way to fix this now.
                    You can read about it here:

                    http://laythemeforum.com/topic/10701/mobile-videos-are-forced-1x1/4

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    Online Users
                    I
                    itsbadjujuju
                    Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                    laytheme.com
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Search