WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Custom # of columns per page? (7 posts)

  1. aster
    Member
    Posted 4 years ago #

    Probably an easy answer, but I'm just not figuring this out today:

    I want be able to override the # of columns per page listed in my NGG admin options page (say I have the default at 7 but want a particular gallery to have 3). Created a new theme, but haven't been able to find out where to change those columns - any ideas?

  2. aster
    Member
    Posted 4 years ago #

    Anyone? :)

  3. mcdonna
    Member
    Posted 4 years ago #

    I'm trying to do this myself. The simplest way seems to be to set the # of columns to zero in the Options/Gallery settings, and then to change the width of your theme on the different pages. So if your thumbnails are 100px wide, put them into a 350px wide div on one page and an 800px div on the other. (I haven't tried this; you'll have to play with the numbers.)

    I also figured out that I can change something in the code and make it work but I hate to do that. If anyone has a better solution, I'd like to hear it!

  4. mcdonna
    Member
    Posted 4 years ago #

    p.s. setting the # of columns to zero seems to work fine when all the thumbnails are the same height, but it gets UGLY when they are of various heights ... I'll post my code hack once I've tested it

  5. aster
    Member
    Posted 4 years ago #

    Yeah, that's about the same hack I eventually figured out. Not elegant to say the least.

    Just seems strange to me that in an otherwise excellent plugin, this useful option wouldn't be supported. Unless I'm missing something?

  6. sv507
    Member
    Posted 3 years ago #

    use the "ngg_gal_Columns" - not documented but in core.php file....

  7. mcdonna
    Member
    Posted 3 years ago #

    thanks, sv507!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.