Align Galleries Center

  • Unknown's avatar

    Is there any way to Center align a gallery. Default is left? No options in the HTML.
    I have a static front page with a centered image and then a gallery below it. I’d like to center it all.
    And this is a wordpress.COM site, no matter if the bot says different.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there,

    It isn’t possible to center galleries. In most cases, the gallery is designed to take up the full width of the post or page, so it doesn’t have to be aligned. In some themes with full-width page templates (like the home page template on your site) the gallery doesn’t take up the full width of the page, so it will always be left-aligned there.

    That’s a known issue, and it has been reported to our team. (The intention is to always have the gallery appear at the full width of the page.) However, the team hasn’t found a fix for that issue yet, so for now the gallery will have to be left-aligned there.

    Sorry I don’t have better news at this point!

  • Unknown's avatar

    Hi there,

    I hope you don’t mind my intrusion here. :)

    But wouldn’t it be possible to center the gallery with some custom CSS?

    Some thing like this:

    div.gallery-row {
    	margin: 0 auto;
    }

    Best regards,

    Michael

  • Unknown's avatar

    I also thought of a different approach you could take, if you want that gallery to take up the full width of that page:

    There are several different gallery styles that you can see on our Galleries and Slideshows support page. If you use the default Thumbnail gallery style, instead of a Tiled gallery, it will fill the entire width. (The issue I mentioned is only with the Tiled/Square/Circle gallery styles, not the Thumbnail style.) You can then adjust the size of the images in that Thumbnail gallery to make them larger or smaller, as you wish.

    Please let me know if you have any questions about that. :)

  • Unknown's avatar

    @michaelvandenberg — That option only works for upgraded sites with the Custom Design features. This site doesn’t have those features, so custom CSS isn’t an option. (It’s best to limit CSS suggestions to the CSS Customization forum, since it’s designed for CSS questions/suggestions, unless you’re sure a particular site has those features.)

  • Unknown's avatar

    Ah, I see. I didn’t know that. Sorry, to interrupt. ;)

  • The topic ‘Align Galleries Center’ is closed to new replies.