• Resolved ingjarp

    (@ingjarp)


    Hi again, why when check the ads the images are cut until you click on them. How could I fix this? Thank you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Well, it has a previously height set (which is 350px, .wpadverts-slide), so all images fill it and end up being zoomed in.

    Adding the code below to your css file would make all images get in the same size as the slider, but there would be some white space left, that you could change with some css, like this screenshot: https://snag.gy/ic9n8F.jpg

    .wpadverts-slide .wpadverts-slide-img.wpadverts-slide-img-square, .wpadverts-slide .wpadverts-slide-img.wpadverts-slide-img-landscape {height: 350px !important;width: auto !important}
    
    .wpadverts-slide-decoration {background-color: #b34040 !important;box-shadow: inset 0px 0px 48px #390d0d !important;}

    Just a comment, maybe Greg has a better way. Saludos

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    the code by moacirsantana should work for you, one other way to do that is to use the object-fit property, you can add the code below in wp-admin / Appearance / Customize / Additional CSS panel it will change how the images fit inside the gallery

    
    img.wpadverts-slide-img {
        object-fit: contain !important;
    }
    

    One additional note, the images by default are being resized and cut to proper dimensions, so in some cases you might still have a part of the image cut off, in order to avoid it you would need to go to wp-admin / Classifieds / Options / Core / Gallery and disable image cropping for the Adverts Gallery.

    Please see https://wpadverts.com/documentation/custom-image-sizes/ for more details.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images looks cut when checking an ad’ is closed to new replies.