• Resolved Mizunga

    (@mizunga)


    Hello,

    I’m using the last version of wordpress and the basic them from components, which includes the following code:

    add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) );

    I would like to output the images as figure/figcaption, but I don’t know how. I’ve seen that twenty sixteen does include this feature, but I can’t find the snippet or how it does it.

Viewing 1 replies (of 1 total)
  • Thread Starter Mizunga

    (@mizunga)

    If you add the caption, the image will have the <figure> tag, as well as the <figcaption>. I guess that without the caption the <figure> doesn’t work.

Viewing 1 replies (of 1 total)
  • The topic ‘How to output images as Figure/figcaption isntead of img from editor’ is closed to new replies.