Site logo

[Resolved] Padding under images and videos

Home Forums Support [Resolved] Padding under images and videos

Home Forums Support Padding under images and videos

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2404134
    Scott

    Hi

    A recent issue that I think arose with the latest WordPress update.

    All images and youtube embeds have lost their bottom padding.

    I added the below CSS to fix the image issue but not sure how to do the same for videos (or why I needed to add this for images as I imagine there should be default padding?)

    /* Padding under images */
    figure.wp-block-image,
    .gb-grid-wrapper figure.wp-block-image,
    div.wp-block-image,
    .gb-grid-wrapper div.wp-block-image {
    margin-bottom: 1.5em ;
    }

    #2404279
    Fernando
    Customer Support

    Hi Scott,

    It’s WordPress default. I believe they removed it. Try adding .wp-block-embed as a selector in your custom CSS.

    Example:

    figure.wp-block-image, .gb-grid-wrapper figure.wp-block-image, div.wp-block-image, .gb-grid-wrapper div.wp-block-image, .wp-block-embed {
        margin-bottom: 1.5em ;
    }
    #2404301
    Scott

    Thanks Fernando

    #2404327
    Fernando
    Customer Support

    You’re welcome Scott!

    #2487244
    Benjamin

    Hello, I also have this issue and want to know if there is a way to achieve this site-wide (no manual action) without adding extra CSS? I feel like the GP theme should automatically do this?

    #2487313
    Ying
    Staff
    Customer Support

    Hi Benjamin,

    That was defined by WordPress and they removed it.

    You will have to use CSS now.

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