WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Images with captions not showing (4 posts)

  1. ontargetpro
    Member
    Posted 2 years ago #

    If I add a caption to an image, it does not show in the post. For example, this page has a picture of an Australian Cockroach on it, but it won't show.

    The code used is:
    [caption id="attachment_1915" align="alignright" width="257" caption="Australian Rach"]<img class="size-medium wp-image-1915" title="australian roach" src="http://allsafe.mypestprevention.com/files/2011/10/Australian_cockroach-257x3003.jpg" alt="australian roach" width="257" height="300" />[/caption]

    I have .caption, .wp-caption and .alignright defined in my stylesheet. Ideas?

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    in style.css of your theme (quite near to the end):

    /* Hides Caption on the main blog only not on individual posts */
    .category-blog .wp-caption { display:none; }

    this style is hiding the caption images; remove it

  3. ontargetpro
    Member
    Posted 2 years ago #

    Thanks, but that only hides captions on the blog category listing, not on the post itself.

  4. ontargetpro
    Member
    Posted 2 years ago #

    Sorry, nope, that was what it was SUPPOSED to do, but you are correct. Case closed! Thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Topic