I’ve set up a default WP gallery on my page here: http://www.kentfackenthall.com/book-design/covers/
I’d like for the captions to not appear under the thumbnails, but I’m having a hard time determining where this is styled. Is this a Minimum theme thing, a Genesis thing, or a WordPress thing.
And yes Andrea, I used the code inspector to see the gallery_caption code, but I can’t find that in my stylesheet for the theme anywhere.
For the record, I just upgraded to WP 3.5 today as well. And I gotta say, the WP Codex is really ambiguous about the default galleries, focusing more on plugins – at least what I found.
WordPress’s post galleries output as an HTML Definition List. Each image is a DT element (tag) and the caption is a DD element, which comes after the DT. To change this, you’ll want to insert your gallery on the page / post, switch to HTML view, and then edit the gallery shortcode you’ll see there.
The reference for this is here, in the WordPress Codex: Gallery Shortcode. Scroll down to the line that reads, “Some advanced options are:”
You can change the tags for each gallery item, the image, and the captions. For example (without the dash and the space next to each square-bracket):
[- gallery itemtag="div" icontag="span" captiontag="p" -]
That would output the gallery as a series of divs, with the image in a span tag and each caption in a paragraph tag. Depending on how you want to design your gallery will determine the correct HTML and then the necessary CSS.
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.