Support » Themes and Templates » When I use a caption, my image will not display.

  • 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

Viewing 1 replies (of 1 total)
  • 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; }
Viewing 1 replies (of 1 total)
  • The topic ‘When I use a caption, my image will not display.’ is closed to new replies.