Site logo

[Resolved] Unable to Contain image in Element

Home Forums Support [Resolved] Unable to Contain image in Element

Home Forums Support Unable to Contain image in Element

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2404637
    Adam

    Hi,

    I am unable to contain the size of my image in the about the author section at the bottom of every post. I’ve tried adjusting the image size, and it does not work.

    Please help.

    #2404735
    David
    Staff
    Customer Support

    Hi there,

    the webP conversion is changing the blocks markup which breaks the GB styles
    To fix that requires CSS:

    1. Select the Image Block and in Advanced > Additional CSS CLass(es) add: author-image

    2. save those changes.

    3. Then go to Customizer > Additional CSS and add this:

    
    .author-image img  {
        width: 95px;
        height: 120px;
        object-fit: contain;
        margin-right: 10px;
    }

    4. Clear any caches.

    #2404758
    Adam

    thank you

    #2404761
    David
    Staff
    Customer Support

    You’re welcome

    #2404770
    Adam

    Got ahead of myself. I added it, and it’s not working.

    #2404967
    David
    Staff
    Customer Support

    Aah, remove what you added.
    And then see here:

    https://generatepress.com/forums/topic/unable-to-contain-image-in-element/#post-2404735

    I edited it, to make it clearer

    #2404983
    Adam

    Now it works.

    Thank you David

    #2404996
    David
    Staff
    Customer Support

    You’re welcome!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.