WordPress.org

Forums

[resolved] Image caption not working properly (8 posts)

  1. beisbolct
    Member
    Posted 6 years ago #

    I'm not sure if this is something with my theme or not but when using the caption on the new image uploader, it is not showing up like it does in the editor.

    I've since taken down the images but here's a link to screenshot of what it looks like.

    http://i341.photobucket.com/albums/o362/soxanddawgs2/Nonsports/captionnotworking.jpg

    and here is the code:
    [caption id="" align="aligncenter" width="250" caption="What Idiots"]<img title="What Idiots" src="http://www.beloblog.com/ProJo_Blogs/SoxBlog/redsox071508-thumb-250x333.jpg" alt="What Idiots" width="250" height="333" />[/caption]

  2. itwusnme
    Member
    Posted 6 years ago #

    I am having the same issue with my blog. The caption doesn't appear like it does in the editor with the image box, etc. I, too, am wondering if there is a line of code that needs to be changed/updated in my theme files to make this work. Oh, I would be so happy if it does.

  3. Andrew Ozz
    WordPress Dev
    Posted 6 years ago #

    Looks like you will need to add the basic caption styles to your current theme. Just copy/paste them to your style.css from the Default or Classic themes' style.css file, or look here:
    http://wordpress.org/support/topic/189152?replies=4

  4. beisbolct
    Member
    Posted 6 years ago #

    thanks azaozz, that fixed part of my problem. The other part of the problem now is they aren't aligning properly. Like if i want the picture on the right with teh quote, the picture just sits on top of the post

  5. Andrew Ozz
    WordPress Dev
    Posted 6 years ago #

    Perhaps you need to add the .alignleft and .alignright css classes too:

    .alignleft {
        float: left;
    }
    
    .alignright {
        float: right;
    }
  6. beisbolct
    Member
    Posted 6 years ago #

    Thank you very much again. I will make this one resolved.

  7. disabledman
    Member
    Posted 6 years ago #

    I can't used the new function too..
    I'm always using the default theme.. What can I do?? Tks a lot!!
    It' worked find in the visual editor but failed in posted and preview!!

  8. demontaihack
    Member
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic