Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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 132 Views
  • 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 Offline
    E Offline
    eplateau
    wrote on Mar 3, 2024, 4:11 PM 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
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Mar 4, 2024, 8:02 AM 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 Offline
        E Offline
        eplateau
        wrote on Mar 4, 2024, 3:10 PM last edited by
        #3

        Nada. Same thing... :S

        https://eduardogi.com/luke-pina

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on Mar 5, 2024, 7:54 AM 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 Offline
            E Offline
            eplateau
            wrote on Mar 5, 2024, 11:34 AM 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
            • A Offline
              A Offline
              arminunruh
              Global Moderator
              wrote on Mar 5, 2024, 2:32 PM 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 Offline
                E Offline
                eplateau
                wrote on Mar 5, 2024, 4:23 PM 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
                • A Offline
                  A Offline
                  arminunruh
                  Global Moderator
                  wrote on Mar 6, 2024, 6:10 AM last edited by
                  #8

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

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    arminunruh
                    Global Moderator
                    wrote on Feb 12, 2025, 6:38 PM 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:4567/topic/10701/mobile-videos-are-forced-1x1/4

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    I also code custom websites or custom Lay features.
                    💿 Email me here: 💿
                    info@laytheme.com

                    Before you post:
                    1. When using a WordPress Cache plugin, disable it or clear your cache.
                    2. Update Lay Theme and all Lay Theme Addons
                    3. Disable all Plugins
                    4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                    This often solves issues you might run into

                    When you post:
                    1. Post a link to where the problem is
                    2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                    3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                    Online Users
                    P
                    piotr
                    17 minutes ago
                    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