NextGEN Gallery
[resolved] How on earth do you centre gallery thumbnails on a page? (6 posts)

  1. LaurenGrace
    Posted 2 years ago #

    I was using Nextgen happily, downloaded the update and I cannot for the life of me get a thumbnail gallery to be centred on a page - it always aligns to the left. I've tried googling and entering various bits of code (I know nothing about coding) on the text tab, but it still persists in being left.

    Is there something really simple I'm missing? If not, what is a good alternative gallery plugin please?

    Thanks very much.


  2. photocrati
    Plugin Author

    Posted 2 years ago #

    @LaurenGrace - An example of what you are seeing would be very helpful in making any suggestions but as it is you will most likely need to add some Custom CSS that adds padding to the left side of the gallery so it "appears" centered.

    We are looking at adding additional options for gallery alignments.

    - Cais.

  3. tizz
    Posted 2 years ago #

    @LaurenGrace, I don't know what bits of code you are referring to, but normally "code" goes in template's files, not in the page editor. If you're talking about NGG tags or shortcodes anyhow it will not work that way.
    How Cais noted you have to custom your layout with CSS, and you can do it from the custom CSS area in Other Options menu.
    In most cases this one below works

    .ngg-galleryoverview {
    .ngg-gallery-thumbnail-box {
    float:none !important;

    Anyway the theme template or something else may interfere, so if that code doesn't work you have to put a link to a gallery as a live example.

  4. LaurenGrace
    Posted 2 years ago #


    Where would I find the other options menu - I don't know where to add this code. I don't know what CSS is, sorry.

    Before I installed the update, I just added the gallery to a page and clicked the centre text button and the gallery would be centred.

    Can you tell me how I go back to the old version, where things like this worked?


  5. oconasera
    Posted 2 years ago #

    @LaurenGrace, I found the "Other Options" was one of the menu choices for the NGG Gallery. From there find the "Styles" menu. Bottom left in that menu window for styles is a hyperlink that says "Customization Options" click on that then take the code that tizz offered up in his post and copy/paste at the bottom of the code that is shown. hit save and you should now have center aligned thumbnails.

    Hope this helps. Worked for me.

  6. photocrati
    Plugin Author

    Posted 2 years ago #

    @oconasera - Thanks for your directions.

    @tizz - Thanks for the custom CSS.

    @LaurenGrace - @tizz's idea should work fine, she is very good with NextGEN Gallery custom CSS ... but, if you still want to roll back to a previous version you are welcome to read this article to help you along the way: http://www.nextgen-gallery.com/how-to-rollback-a-version/


    - Cais.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.