How to Easily Add HTML to a Photo Caption

There are times when a caption works for a photo. Perhaps a product, or images on a travel blog. In any case, you can use HTML to bold text or hyperlink it to another site.

But what if you don’t know HTML? Or don’t want to bother Googling it?

Here is a quick and easy way.

Upload your image to your media library, then click on edit and you will get this screen.

adding image caption

Now you can see that I have added a caption but instead of putting in the Caption box, I have used the Description.

adding html to the caption

Now simply add the HTML. For example, I highlighted beautiful in the fall and clicked on the “b” bold button. Then I highlighted don’t miss it, and clicked the link button. This gave me the option to link to the Central Park site. The result look like this.

now add the html

Once you have it formatted, now copy, remove and paste the text into the caption.

html markup in a caption

Save, and now you have a caption with some bolded content and a hyperlink.

caption on a WordPress photo

Tags: , , , ,

10 Responses to “How to Easily Add HTML to a Photo Caption”

  1. I appreciate you posting about these time-saving shortcuts. Even if you know HTML, this is something you can do ‘on the fly’ that makes my work much easier.

    • Hey Dave, exactly :) I get arguments all the time from WordPress designers and devs, “everyone who uses WordPress should know some HTML”. Well, in a perfect world, maybe, But realistically. NOT! People have other strengths and that’s the beauty of WordPress, the things you can do without knowing any code… cheers!

  2. Brilliant! Quick and easy!

  3. God, I didn’t notice the Description box. This tip will definitely make my life easier!
    Cheers!

  4. Christian Nelson December 25, 2013 at 5:08 pm

    What a great tip. So simple, yet I never would have thought of it myself in a million years. Thanks, Bob.

  5. One of those, why didn’t I think of that-hacks. Thanks for this!

    • Yeah, it’s funny how some of these things come to me. Frustrated with something in WordPress that I know should be easier. Then I step back and look at it from a different perspective ;)

Leave a Reply

WordPress® and its related trademarks are registered trademarks of the WordPress Foundation. This website is not affiliated with or sponsored by Automattic, Inc., the WordPress Foundation or the WordPress® Open Source project. Nor is this site sponsored by WooThemes, StudioPress or any companies that produce the plugins I recommend on this site.
css.php