Is figcaption supported ?

  • Author
    Posts
  • #147862

    Hi,

    I’ve noticed recently that captions to photographs are not rendering correctly. In the editor they are centralised and in a smaller font, but when viewing the published article the captions just appear like the main body of the blog (same font size) and left justified.

    Is there an issue with the theme not supporting figcaption ?
    Is there a workaround for this ?

    It makes the appearance of many of my blogs awful.

    Thanks,
    -Kevin.

    The blog I need help with is kevinstandagephotography.wordpress.com.

    #147867

    binarymoon
    Theme Author

    Hi Kevin – thanks for the message and sorry for the problems.

    Do you have a link to an example of this happening? If I can see the problem then I should be able to fix this within the theme.

    Thanks – Ben

    #147874

    Hi Ben – thanks for getting back to me.

    https://kevinstandagephotography.wordpress.com/2019/10/03/amaravati-marbles-british-museum-elliot-marbles/

    The first 10 images in this blog post all have a caption that is rendering as described.

    The HTML code for the page as displayed in the editor when I switch to that mode looks like this :

    <figure class=”wp-block-image size-large”><figcaption> Depiction of the Amaravati stupa, recovered from the site</figcaption></figure>

    The corresponding code when viewing the source on the page looks like this :

    <figure class=”wp-block-image size-large”><figcaption> Depiction of the Amaravati stupa, recovered from the site</figcaption></figure>

    This seems to be happening no matter which browser I use on my desktop, iPhone or iPad.

    Thanks,
    Kevin.

    #147880

    FYI – Here’s a screenshot of how the caption looks in the editor :

    https://kevinstandagephotography.files.wordpress.com/2019/07/editing-blog.jpg

    ..and here’s how it renders upon viewing (or previewing) :

    https://kevinstandagephotography.files.wordpress.com/2019/07/viewing-blog.jpg

    Thanks,
    Kevin.

    #147889

    binarymoon
    Theme Author

    Thanks for the extra info Kevin – that’s really helpful. I have tweaked the theme and it now styles figcaptions differently.

    Cheers – Ben

    #147899

    Ben,

    This is awesome, you’ve fixed it ! Thank you so much !

    Kevin.

    #147906

    binarymoon
    Theme Author

    No problem! :)

The topic ‘Is figcaption supported ?’ is closed to new replies.