Modifying white space beneath the default gallery

  • Author
  • #1147107


    I’ve been trying to get a gallery of mine to work correctly all morning but can’t seem to get it quite right. I’m using the regular WordPress gallery to put in a 1 row, 4 column gallery in the middle of a post. There’s nothing but text, gallery, text with no extra spaces or breaks, but the gallery automatically creates more white space below itself than above.

    Here’s the code on the page:

    Himself and Nora is alive with intelligent and witty tunes ranging from boldly anthemic to raucously funny to moving poignancy.

    [gallery columns="4" ids="301,302,303,304"]

    Direct from its stunning success at the 2012 New York Musical Theatre Festival, Jonathan Brielle’s Himself and Nora has its first musical theater offering at UCPAC’s Hamilton Stage.

    How can I go about editing things so that the white space is the same both above and below? Thank you!


    Moderator is not hosted on

    For help with self-hosted, standalone WordPress installs, you’ll need to post over at

    Good luck.



    Hi Jennifer! I own but the question isn’t about that site. It’s actually about a post I’m trying to get working correctly on which is hosted at



    If you had the Custom Design upgrade, you could change the default space once for all. Without the upgrade, you can only change it by adding code in the Text editor. You can’t interfere with the gallery itself, so you need to modify the paragraph that follows the gallery shortcode, like this:
    <p style="margin-top:-12px;">TEXT HERE</p>
    Change the number to adjust the space.



    @waltsimages FWIW for the purpose of posting in these forums, please always link to the site you have a question about or change the link in your username to your site. TIA



    Justpi – THANK YOU! That worked beautifully!



    @justjennifer Oh sorry about that. I’d selected the option when posting that said it was a general wordpress question but I guess it didn’t pop up. I will make sure to do that. Thank you!

The topic ‘Modifying white space beneath the default gallery’ is closed to new replies.