top of page

Forum Posts

suzannedewaard
Jul 07, 2021
In Coding with Velo
https://www.suzannebirch . com/bird-originals I created this page to show the works that are for sale, using a dataset / dynamic pages. Some images in the repeater are portrait, some landscape. Now they are all cropped in a really awkward way. I have found the code to fix this from this page: https://www.wix.com /velo/reference/$w/image/src And have figured out that I need to add this line of code: $w("#Image1").fitMode = "fit"; Also I looked at all the very basic tutorials out there and on this forum, and I cannot work out how to add this code into my page so that it actually works. It seems to work when I click preview, however on my actual published website the images are still cropped awkwardly. Please help, I'm going mad! Can anyone just give me the piece of code and tell me step by step where and how to put it, somewhere in the editor below?
Changing Image Fit in repeaters content media
0
14
147

suzannedewaard

More actions
bottom of page