WordPress.org

Ready to get started?Download WordPress

Forums

When I use a caption, my image will not display. (2 posts)

  1. ontargetpro
    Member
    Posted 3 years ago #

    I tried deactivating all plug-ins. This is on a multi-site setup and on the base site, it works. On the added sites, I get no image when I add a caption to it.

    Here is the post where the image will not display.

    If I view source, the image is there, it just doesn't display.

    <div class="wp-caption alignnone" style="width: 283px"><img class=" " src="http://allsafepestprevention.com/files/2011/06/iStock_000011690439XSmall117.jpg" alt="" width="283" height="424" /><p class="wp-caption-text"><span>A Mosquito - Magnified</span></p></div>

    Here is the post where it does display

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    this style at the end of style.css:

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

    (it is meant to work on the css class generated by body_class() , but is accidentially working on the same generated by post_class())

    change to:

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

Topic Closed

This topic has been closed to new replies.

About this Topic