Site logo

[Support request] Image and text are too close

Home Forums Support [Support request] Image and text are too close

Home Forums Support Image and text are too close

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2398295
    Krish

    On the Mobile version Images and the text are close together.

    I’m getting the error – “Clickable elements too close together” from the Google search console.

    Also, how can I change the gap between paragraphs and headings?

    I’ve attached the link and screenshot.

    How to fix this?

    Thanks

    #2398683
    David
    Staff
    Customer Support

    Hi there,

    i tested a few pages using Mobile Friendly test and they all passed:

    https://search.google.com/test/mobile-friendly/result?id=amtwjimHHQYJh7Q8ssCfDw

    May just be Google bot being overloaded, recrawl the links later today to see if the warning passes.

    The space after the image.
    Add this CSS:

    
    .figure {
        margin-bottom: 1.5em;
    }
    #2399319
    Krish

    Yeah, Whenever i test the live URL it gets passed. But overall the site has indexing issues. So I think it’s because of this issue.

    Can I adjust the spacing between the elements using the Customizer? Like with realtime editing?

    Thanks

    #2399336
    Fernando
    Customer Support

    Hi Krish,

    You’re site is passing on Google’s Mobile-Friendly test as well when I tested.

    You’ll need custom CSS most likely. In what way are you wanting to add spacing? Perhaps we can increase the default bottom margin for Paragraphs and Headings on mobile?

    #2399369
    Krish

    Ok.

    Could you give me the code to increase the bottom margin for paragraphs and headings on mobile?

    Thanks

    #2399383
    Fernando
    Customer Support

    You can try adding something like this in Appearance > Customize > Additional CSS:

    @media (max-width: 768px) {
       .entry-content :is(p, h1, h2, h3, h4, h5, h6) {
            margin-bottom: 40px;
        }
    }
    #2400884
    Krish

    This works. But the spacing between the image and text is still not changing.

    #2400924
    Fernando
    Customer Support

    You can change the code to this:

    @media (max-width: 768px) {
       .entry-content :is(p, h1, h2, h3, h4, h5, h6, .wp-block-image) {
            margin-bottom: 40px;
        }
    }

    This will apply the same bottom margin to images as well on Mobile view.

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