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. Bug Reports
  3. Thumbnail ratio 3:2

Thumbnail ratio 3:2

Scheduled Pinned Locked Moved Bug Reports
5 Posts 2 Posters 63 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.
  • R Offline
    R Offline
    robsdonatini
    wrote on last edited by
    #1

    Hello there,
    I'm trying to have all the project thumbnails image in the ratio 3:2 horizontal.
    I'm not using thumbnail grid, but inserting them one by one in a page (is it convenient?)

    https://wip.landcho.eu/all-projects/
    usr casetta
    psw cibocinese

    Is there a way to make them all 3:2 and to crop for example vertical images centering them into the 3:2 frame?

    I found this http://laythemeforum.com:4567/topic/5660/thumbnail-image-aspect-ratio/3?_=1752573772175 but not sure how to use it, I'm not getting the % things on padding-bottom...

    Thank you,

    Roberta

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2
      .col.type-project .ph{
      padding-bottom: 66.6666666%!important;
      }
      

      add this in:
      lay options -> custom css & html -> custom css

      1 Reply Last reply
      0
      • R Offline
        R Offline
        robsdonatini
        wrote on last edited by
        #3

        it worked on the frame, but still the image is not filling the frame as you see here

        Schermata 2025-07-15 alle 15.33.16.png

        i tried to add this code

        .thumb img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover !important;
        background-position: center !important;
        }

        and trying also with
        .col.type-project .ph .img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover !important;
        background-position: center !important;
        }

        but nothing changes.

        1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by
          #4
          .col.type-project .ph{
          padding-bottom: 66.6666666%!important;
          }
          .col.type-project .ph img{
            position: absolute!important;
            top: 0!important;
            left: 0!important;
            width: 100%!important;
            height: 100%!important;
            object-fit: cover!important;
          }
          

          try this please

          1 Reply Last reply
          0
          • R Offline
            R Offline
            robsdonatini
            wrote on last edited by
            #5

            it works! thanks

            1 Reply Last reply
            1
            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
            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