Hide caption on thumbmail images?
-
Howdy,
Trying to figure out how to hide captions on just thumbnail images, while having them show on any other images.
The problem seems to be that the image caption <p> is not a child of the image, so there’s no direct way in CSS to detect that the image is a thumbnail, and then hide the caption.
<div id="attachment_322" class="wp-caption alignleft" style="width: 135px"><a href="/expertise/screen-shot-2012-03-01-at-8-22-13-am/" rel="attachment wp-att-322"><img class="size-thumbnail wp-image-322" title="Screen shot 2012-03-01 at 8.22.13 AM" src="/wp-content/uploads/2012/03/Screen-shot-2012-03-01-at-8.22.13-AM-125x125.png" alt="some blue sky that is dark" width="125" height="125" /></a><p class="wp-caption-text">some blue is dark</p></div>Anyway of targeting that thumbnail caption without going to an image gallery plugin?
The topic ‘Hide caption on thumbmail images?’ is closed to new replies.