• Resolved nacinla

    (@nacinla)


    Just now learning Gutenberg because a client is using it for a website. It appears I have to resign myself to the fact that, currently, the Gutenberg MO for inserting an image wrapped into text forces one to use the Image block, which comes with the caption. But what if you don’t want a caption? Yes, you can leave it blank, but the space is still there, or at least it is in my experience. There’s no code in HTML view for it. Is there an easy way to suppress that code?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Daniel Richards

    (@talldanwp)

    Hi @nacinla, you should be ok leaving the caption blank. If you’re still seeing a space for the caption when viewing the post it sounds like something is not quite right.

    In the HTML the caption should appear in the ‘<figcaption></figcaption>’ tag. What HTML are you seeing for your image?

    Thread Starter nacinla

    (@nacinla)

    Thanks. Yes, in viewing the page it appears the space is collapsed, so that’s OK. The <figcaption> tags disappear if there’s no caption text, so that’s a good thing. I stand corrected about the space issue. Onward!

    • This reply was modified 5 years, 11 months ago by nacinla.

    Hi @talldanwp Figcaption is not showing any caption when used in a Media & Text block.
    And it returns an “HTML Error”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image block: suppressing the caption’ is closed to new replies.