WordPress.org

Ready to get started?Download WordPress

Forums

How to add captions to images in a WordPress blog posting? (3 posts)

  1. dibs
    Member
    Posted 8 years ago #

    I have a WordPress blog at http://www.dibsblog.com. I'm trying to figure out how to add captions underneath images in a post. The theme I'm using is called Falling Leaves. I tried to research this, and learned that there is no real way to do captions in strict HTML. The technique for making a caption for a "table" (containing the image) doesn't work, for whatever reason. From what I've read, I need to alter my style.css file to make captions possible. I've tried different methods I've discovered on the Web, but none of them work. Help! How is it possible to make captions under a picture? (Key point: the picture is embedded in the text, which wraps around it.) I realize that I will have to add something to my style.css file, but I don't know exactly what to add; and then I need to know which html code will then insert the caption properly.

    I guess the only way for anyone to answer this question is to see the contents of my style.css file; to spare you the trouble of getting the Falling Leaves theme yourselves, I'll paste its style.css file here. What do I add to this, and where? And then what html goes with it? Thanks!

    [long post moderated]

  2. moshu
    Member
    Posted 8 years ago #

    Don't post long code - nobody reads it. Use a pastebin service.

    But before that - just read the Codex:
    http://codex.wordpress.org/Using_Images
    http://codex.wordpress.org/Wrapping_Text_Around_Images

  3. dibs
    Member
    Posted 8 years ago #

    moshu -- Sorry about the long code post. Didn't know it was discouraged.

    Anyway, thanks for the links; I attempted to follow the instructions in the articles, and though at first I was bedizened by the foggy prose, and could make neither head nor tail of it, I was inspired to continue fiddling, and with some inspiration from WordPress's support articles, I did cobble together a technically ugly but eventually successful rendering of image captions, as can now be seen on http://www.dibsblog.com. So, problem solved for me. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags