WordPress.org

Ready to get started?Download WordPress

Forums

Problem Using HTML in Text to Add Image in Sidebar (8 posts)

  1. krystin_p
    Member
    Posted 2 years ago #

    A strange thing happened today. I used to have an image in my sidebar with a caption attached but below the image. Well, I changed the caption and copy/pasted the new html code and now the image shows up with the code. After many attempts, I replaced the new code with the old one that used to work. Now, it does the same thing. I've deleted my cookies and restarted the computer and tried it all again. It's still showing the code.

    Here's what I'm trying to do. When I uploaded my photo to the media library, I added the caption to the image (since WordPress allows you to do that). What this created was a nice little gray box around my picture and caption. I want to have that same look, even if I have to go about it a different way.

    Please help!

  2. krystin_p
    Member
    Posted 2 years ago #

    Oh, just in case you need to know this... My theme is: Twenty Ten 1.2 by the WordPress team and I'm using the most recent version and updates.

    Thanks.

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    You can't use markup in image captions.

  4. krystin_p
    Member
    Posted 2 years ago #

    Sorry, but I don't know what that means.

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    Use plain text - no HTML - in your image captions.

  6. krystin_p
    Member
    Posted 2 years ago #

    My image caption is in plain text. The problem is that I used to be able to copy the html of the image with caption and paste it in the text widget. That would produce the nice gray box around my picture and caption. Now, it won't work.

  7. esmi
    Forum Moderator
    Posted 2 years ago #

    I don't recall the applying any special styling to image markup in a Text widget. The CSS you describe is specific to captioned images in posts and images in galleries.

  8. krystin_p
    Member
    Posted 2 years ago #

    I know. It worked fine until I tried to change it and now I can't even get the text widget to accept the original html I had. The one that worked.

Topic Closed

This topic has been closed to new replies.

About this Topic