• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Default WP Gallery Styling, Captions Under Thumbnails

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Default WP Gallery Styling, Captions Under Thumbnails

This topic is: resolved

Tagged: caption, gallery, thumbnails

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 6 months ago by ramseyp.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 11, 2012 at 9:08 pm #4606
    Kent
    Participant

    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.

    -Kent


    Dad. Biker. Designer. | kentfackenthall.com

    December 12, 2012 at 12:15 am #4642
    ramseyp
    Member

    Kent,

    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.


    Community • Work • Conversations

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble