This Is How Easy It Is To Centre Captions Underneath Images And Photos On WordPress

Once upon a time, getting captions to centre underneath photos and images on blog posts involved adding complicated CSS code to your blog.

I don’t know about you, but it doesn’t look right to me whenever I see uncentred captions. It gives blog posts a messy look.

However, WordPress now makes it much easier to centre captions under blog posts, images and photos.

Banner for the blog post 'This Is How Easy It Is To Centre Captions Underneath Images And Photos On WordPress'
Are your captions centred?

Here’s my simple guide to centring captions.

  • Add an image or photo to a blog post.
  • Click on the image to open the image toolbar.
Image of a photo on a WordPress blog highlighting the image toolbar
How to centre a caption

You’ll see that the caption is aligned to the left under the above photo. Arghhhhh!

  • On the toolbar, click on the ‘Align‘ button and on the dropdown menu that appears, click on ‘Align Centre.’
Image highlighting the Align Centre button on WordPress
Click on the Align Centre button.
  • The image or photo will now be centred on your blog post, as will the caption.
Image showing a centred caption under an image on a WordPress blog.
The caption is now centred underneath the photo.

How easy was that? No more ‘Arghhhhhs.’

The example I have given above works on the Block editor.

Of course, if you prefer captions on your blog posts to be aligned to the left or right, you can ignore everything I’ve said in this post.

If you have any questions about centring captions, leave them in the comments section.

Looking for more blogging tips? Click on the ‘Blogging Tips’ and ‘Block Editor – How To’ buttons on the menubar of my blog.

Follow Hugh on social media. Click on the buttons below.

Subscribe to receive further updates from Hugh

Copyright © 2022 hughsviewsandnews.com – All rights reserved.


Discover more from Hugh’s Views & News  

Subscribe to get the latest posts sent to your email.

56 responses to “This Is How Easy It Is To Centre Captions Underneath Images And Photos On WordPress”

  1. petespringerauthor avatar
    petespringerauthor

    I can always get the pictures centered, but the captions don’t seem to center consistently. Sometimes they’re centered in the draft and switch to left justification when I hit publish.

    1. Hugh W. Roberts avatar

      Pete, there are a few things you can try to fix the issue –

      1. I don’t know which method you use when adding captions, but try a different way. If you add them in the block, try adding them in the media library instead, and vice-versa. I use both methods, which always work for me.

      2. Try adding a CSS code to your blog to centre captions. The code I previously used was –

      /* align caption on center-aligned images KG-15020525-hc */ .wp-block-image .aligncenter> figcaption { text-align: center; } /* KG-15020525-hc */

      However, some bloggers informed me that it didn’t always work. It always worked for me, though.

      3. I don’t know what theme you use, but if it’s a retired theme, WordPress will ask you to choose a current one they’re still supporting. A few years ago, I was having issues and discovered that the theme I was using was retired and no longer supported by WordPress. I had to choose a new theme to get rid of the bugs. It worked!

      4. It could be a theme bug that is making the caption align to the left despite you having used the ‘Align Centre’ button. Contact the Happiness Engineers and ask them if they can help check and fix the bug (if there is one).

      I hope that helps.

      1. petespringerauthor avatar
        petespringerauthor

        Thanks for taking the time to make all these suggestions, Hugh. Interesting that some themes work and others don’t. I don’t think I want to change themes, but I’ll try some of your other recommendations.

  2. orthodoxmom3 avatar

    Thanks! I haven’t worried about this one yet but what an easy fix!

  3. Erika avatar

    I second that, it is absolutely simple!

    1. Hugh W. Roberts avatar

      Thanks for the backup, Erika.

  4. Brenda avatar

    Hugh you’re such a font of essential and helpful information. Another new tip to help improve. Thank you.

    I’m also learning so much just from the conversations in your comments 😁

    1. Hugh W. Roberts avatar

      The comments section can hold a wealth of new information, Brenda. I always read them. Sometimes they can be more interesting than the post.

  5. JT Twissel avatar

    I must admit, I have suffered with the left leaning captions! Thanks for the tip!

  6. Liesbet @ Roaming About avatar

    I’ll have to try this again, Hugh, as until recently, my caption would show up “vertically” with every word underneath the previous one. Also, creating galleries – with captions for each photo – was still not possible when I last checked this out on the block editor. That’s why I’m still using the classic blocks for photos and galleries on my blog. It is possible to center the photos in the classic editor as well, which I always do.

    1. Hugh W. Roberts avatar

      I’m going to have to play around with the galleries on the Block editor and see if I can get captions to centre on them, too, Liesbet. Thank heavens we have the Classic Block, although I do find it rather strange that some bloggers still refuse to use the Classic block.

      I’ll let you know how I get on.

      1. Liesbet @ Roaming About avatar

        Thanks, Hugh. As far as I know, galleries don’t even show up correctly in the “new” Editor, let alone the captions…

        1. Hugh W. Roberts avatar

          Which gallery do you use the most, Liesbet?

      2. Liesbet @ Roaming About avatar

        I always use the classic block gallery, Hugh. If it ever comes to using the newer photo blocks, any gallery would do. I like being able to put 4-8 photos in the same “block”, because grouping my many photos according to a theme or a place makes most sense.

        Right now, in the classic block, the captions show when someone clicks on the photo in a gallery or hovers their mouse over it. Not sure how the captions would show up in a block other than the classic one. They might partly cover the photos… I would have to play around with it more but don’t have time for that right now.

        1. Hugh W. Roberts avatar

          OK, thanks, Liesbet. I’ll also play around with some of the gallery blocks and let you know how I get on.

  7. Terri Webster Schrandt avatar

    I remember your last post on this subject and used the code for centering. Ot worked but only intermittently. I scrolled through and see that my captions are centered, but the caption is the same size as my body font. Always appreciated when you post these how-to’s Hugh!

    1. Hugh W. Roberts avatar

      Hi Terri, the font size could have something to do with the theme you’re using or the font sizes you have chosen if not using the default font sizes for the theme. Some themes have the option for users to change the size of the font. I tend to leave them alone unless the font size is too small, although I’d probably choose another theme if the font size could not be changed and was too small.

      1. Terri Webster Schrandt avatar

        I believe you are right, Hugh. Not a big deal, I don’t think it detracts from the post. At least their centered!!

        1. Hugh W. Roberts avatar

          Absolutely! Thanks, Terri.

  8. Colleen M. Chesebro avatar

    I’ve struggled with this forever! Thanks so much Hugh. I’ll give this a go. On my new author blog I can’t get my messages from the little bell icon on the front page of my blog. I have to go into the dashboard. I contacted WP… they claimed it was my browser, but it happens no matter what I do. Both Chrome and Safari have the issue. But on WordCraftPoetry I can use the bell to retrieve messages. I think the how we retrieve messages is going to change soon.

    1. Hugh W. Roberts avatar

      You’re welcome, Colleen.

      I use Chrome and can access my messages from the bell icon anywhere it appears on my blog. I wonder if it’s a problem with the theme of your blog, as many of the older ones no longer have support? However, I don’t use the bell icon much because it sometimes does not always show all the messages, so I use the comments dashboard. I switch between the Default and Classic views, especially when dealing with spam, although I don’t get much spam any more since doing a big cleanup and housekeeping exercise on my blog.

      1. Colleen M. Chesebro avatar

        Thanks, Hugh. It could be the theme but this is a new blog. I’ve had issues receiving comments here. It’s so frustrating. I’m on Premium and you would think we would get some better themes. It seems all the specialty blogs are getting the themes.

        1. Hugh W. Roberts avatar

          I’d recommend using the comments section on the dashboard of your new blog, Colleen. I think it’s far more reliable, although do check your spam folder for genuine comments that could end up in there.

          Once upon a time, you could check whether the theme you were using was active or retired, but WordPress seems to have moved or removed that option. I recommend you ask them the question next time you speak with them.

          1. Colleen M. Chesebro avatar

            Thanks, Hugh. That’s sound advice. ❤️

  9. Michelle (Boomer Eco Crusader) avatar

    Once again, Hugh, you have solved one of my little annoyances with my blog. Now I need to go back and update some posts. LOL

    1. Hugh W. Roberts avatar

      Good to hear, Michelle. I’m glad it has helped. And it’s so quick to do, although it may take some time to update your older posts (depending on how many you have).

      1. Michelle (Boomer Eco Crusader) avatar

        I have a lot but some are more picture-heavy than others. I will tackle them first.

        1. Miss Judy avatar

          Michelle – this bit of CSS might work and save you a lot of tedious updating. Use in your site Customize – Appearance – Advance CSS
          .wp-block-image figcaption {
          text-align: center;
          }

          1. Michelle (Boomer Eco Crusader) avatar

            Thanks Judy. I will give that a try!

  10. Cathy Cade avatar

    I don’t often add captions to my blogs.
    I would have thought the instructions above were obvious, had I not, fairly recently, added one and found it impossible to centre, in spite of trying the obvious. I’ll go back and try again.
    How can it have taken so long to make this possible?

    1. Hugh W. Roberts avatar

      It used to be done by adding CSS code to your blog, but as the Block editor has developed, WordPress is adding many features, so you don’t need to do the work.

      This new way has been available for quite some time because I’ve been using it, but I still see many blog posts with inconsistent captions. To me, it looks so wrong. Hopefully, this post put things right.

      1. Cathy Cade avatar

        I suppose once we’ve failed to get the effect we want we give up tryinng :( thanks for the update.

        1. Hugh W. Roberts avatar

          You’re welcome, Cathy.

      2. Miss Judy avatar

        I’d be interested to know the CSS code so it would automatically be done. Do you have it?

        1. Hugh W. Roberts avatar

          Here’s the code I used, but I can not guarantee it works anymore.

          /* align caption on center-aligned images KG-15020525-hc */ .wp-block-image .aligncenter> figcaption { text-align: center; } /* KG-15020525-hc */

          Let me know how you get on.

          1. Miss Judy avatar

            I found this snippet of code on helpmegeek.com. It seems to have worked and has even updated older posts. The post describes how it works, if you are interested.
            .wp-block-image figcaption {
            text-align: center;
            }

            1. Hugh W. Roberts avatar

              Thanks so much for that piece of information. I’m sure it will help many people who want to update the captions on their older posts.

Leave a Reply

I’m Hugh

A high-angle overhead photograph of the same smiling bald man from the previous image, now dressed for Christmas and looking directly up at the camera. He wears a red plush Santa hat with a white fluffy trim and pom-pom, a festive red-and-white knit Christmas sweater with snowflake and fair-isle patterns, dark blue jeans, and white sneakers with his hands in his pockets. He stands on a green lawn dusted with light winter snow, surrounded on the ground by wrapped holiday gifts with bows, pine cones, red and gold ornaments, holly sprigs with red berries, and glowing multicoloured Christmas fairy lights.

Welcome to my blog. I’m delighted you’re here. This is where you can find tips on blogging and WordPress, flash fiction, photography, and more. I enjoy engaging with my readers, so please feel free to explore, join discussions, and contact me. I’m happy to assist! Find out more about me and my blog by clicking the ‘Meet Hugh’ button.

Let’s connect

Subscribe to Hugh’s Views And News

Latest Posts

  • How to Schedule a Post in WordPress After the Latest Update
    When WordPress quietly changed how scheduling works, I accidentally published a post immediately instead of queuing it. This guide explains what changed and walks you step by step through the new desktop scheduling process so your posts go live exactly when you want.
  • WordPress Comment Login Problems: New Answers, No Fix Yet
    WordPress has confirmed a bug that forces some users to sign in repeatedly before commenting, caused by changes to the new comment form. There’s no fix date yet, but staying logged in may help some people. This post shares WordPress’s latest answers and temporary workarounds.
  • WordPress Comment Login Problems: Latest Update and Fix Hopes
    Hugh shares the latest on WordPress’s comment sign‑in problems: partial improvements, an official response about changed login sessions and cookie rules, new subscription pop‑ups after commenting, and a workaround that involves staying signed in. He invites bloggers to report whether they’re still affected.
  • WordPress Comment Problems? Here’s What’s Still Going On
    Still being asked to log in when you comment on WordPress.com blogs, even though you’re already signed in? I’m sharing WordPress’s latest update on this known bug, which explains when it happens and demonstrates how to use the “Add your name” option and other workarounds. My post also includes information on the action WordPress is taking to resolve the problem.
  • WordPress.com Comment Problems? Here’s What’s Going On
    Are you suddenly unable to leave comments on WordPress.com blogs, or being asked to log in even when you’re already signed in? I’m sharing details of these current WordPress comment glitches, what engineers have confirmed, and a temporary workaround via the Reader.
  • Sunday Stills Photo Challenge: Steps & Stairs
    Explore the playful side of steps and stairs in this week’s Sunday Stills photo challenge. From optical-illusion doorways and autumn-leafed stone steps to a corgi “research assistant” and a mysterious figure at the top of the stairs. Plus simple guidelines to share your own creative images. Everyone is welcome to join in.

Looking for your next quick read? Try my books

An image of book covers, book, tablet and mobile phone, for the book Glimpses.
An image for the book More Glimpses - showing a book cover, tablet and mobile phone.
A widget with the words 'Team Effort - Story Chat Digest - Where Authors Meet - Author'

Most Viewed Posts & Pages Over The Last 24 Hours

Recommended Blogs To Follow


Roaming About
A Life Less Ordinary

Second Wind Leisure Perspectives
Second Wind Leisure Perspectives
Fun, Photography & Friends

Spo-Reflections
Spo-Reflections
To live is to battle with trolls in the vaults of heart and brain. To write; this is to sit in judgment over one's Self. Henrik Ibsen

Boomer Eco Crusader
Boomer Eco Crusader
Live Green | Declutter | Simplify Life

SONGS AND SCRIPTS AND DUNKING BISCUITS
Every day tales of a winging-it creative

Jacqueline Lambert
Jacqueline Lambert
Award-Winning Travel Humour Writer

Anne R. Allen’s Blog… with Ruth Harris
Writing about writing. Mostly.

Fancying France
The musings of a ‘femme d’un certain âge’ who divides her time between SW France and SE England

Marsha Ingrao         Always Write
Marsha Ingrao Always Write
Having fun blogging with friends

Curiosities, Castles and Coffee Shops
Curiosities, Castles and Coffee Shops
The musings of a curious mind

WrookieSchU
WrookieSchU
Live life 🙌🏼

WPcomMaven
WPcomMaven
Helping you make the most of your free WordPress.com website since 2011

Share Your Light
Share Your Light
You are a miracle – Let it happen

No Facilities
No Facilities
Random thoughts, life lessons, hopes and dreams

Esther Chilton
Writer, Tutor and Editor

Saying nothing in particular
Saying nothing in particular
Jan … JT Twissel

The Chicago Files
The Chicago Files
A Canadian Perspective on Living in the Windy City!

Thank you to all my visitors

498,911 hits

276,297 visitors

Scan the QR code to follow me on Bluesky

Copyright Protected Blog

COPYRIGHT ©2011-2031 Hugh’s Views And News BLOG – All Rights Reserved.

This work by Hugh W. Roberts and/or Hugh’s Views And News blog is licensed under a Creative Commons Attribution-Noncommercial-NoDerivatives 4.0 International License. Unauthorised use and/or duplication of this material (text and images) without express and written permission from this blog’s author and/or owner is strictly prohibited. If you want to use posts, excerpts, photos and links, you may contact me first. You must give full and clear credit to Hugh W. Roberts and Hugh’s Views And News dot com with links to the original content.