• Resolved Wilfredo Perozo

    (@wiljope007)


    Greg what can I do to:
    1.- Prevent images from being trimmed

    2.- Avoid showing the title twice

    Attached image

    Thank you!

    <figure class=”wp-block-image”></figure>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    1. there are two things you can try

    1a. change how the image fits inside the gallery by adding the code below in wp-admin / Appearance / Customize / Additional CSS panel

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

    1b. change image cropping, go to wp-admin / Classifieds / Options / Core / Gallery and disable cropping for the gallery, once you do that use a plugin like Regenerate Thumbnails to regenerate already cropped images.

    2. it seems the title is displayed twice by your theme not WPAdverts, the easiest way to fix it would be to hide one of the titles with CSS code.

    Thread Starter Wilfredo Perozo

    (@wiljope007)

    Solved Greg, thanks!
    Opt for the first and it worked.
    Now, try to do the same with the attached image and it doesn’t work …
    I entered the following code:

    body adverts-gallery-upload-item-img {
    object-fit: contain !important;
    }

    I ask, what did I do wrong?

    <figure class=”wp-block-image”></figure>

    Plugin Author Greg Winiarski

    (@gwin)

    The images in the gallery are cropped to an exact size which will be displayed so most likely changing how it fits inside the box will not change anything, you will need to try the option 1b, but for the “Upload Thumbnail”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cropped image and double title’ is closed to new replies.