Media Library Assistant
Gallery layout/responsiveness (5 posts)

  1. Alexander S. Kunz
    Posted 3 years ago #

    Hello David,

    one of the hot topics in terms of layout is "responsiveness" at the moment. And in terms of responsiveness, the WP gallery (and MLA gallery) are not exactly shining examples of the art with the fixed columns. :)

    I was wondering if it would be possible to add a "floating column" layout to the MLA gallery shortcode so that as many images will appear next to each other as the current layout/width of the site/page allows... ?

    Like, on a large screen, it'll be

    1 2 3 4 5
    6 7 8 9

    But on a smaller screen, it'll be

    1 2 3
    4 5 6
    7 8 9

    And on a tiny smartphone screen, even

    1 2
    3 4
    5 6
    7 8

    Is that easily possible at all?

    Thanks for looking


  2. David Lingren
    Plugin Author

    Posted 3 years ago #


    Thanks for this great suggestion. I am working on styling and content enhancements for the [mla_gallery] shortcode for the next release.

    If you know of any examples of sites where this is done, I'd love to see them. I will do my best to put this idea into the plugin.


  3. Alexander S. Kunz
    Posted 3 years ago #

    I wouldn't know of any examples sites using the WP gallery, but the theme that I'm using does something like that with the "portfolio" items. It doesn't really matter which, but for example:

    As you resize the browser window, it will first decrease the size of the thumbnails (not sure if this is something that WP does since it happens with the MLA galleries too) and then switch from three to two columns, and then from two columns to just one.

    I think the "NextGen Gallery" plugin for WordPress does something similar (not sure though, I don't use it anymore because I didn't like it since it is completely separate from WP's built-in media library).

  4. David Lingren
    Plugin Author

    Posted 3 years ago #


    Thank you for the link to your portfolio example. It's a good example of the responsive design you've outlined, but it uses JavaScript to achieve much of its effect. I've now read four books on CSS and concluded that a "styles-only" solution to this problem is beyond my limited capability. I haven't come up with anything that I have confidence in across popular browsers and versions.

    I'm open to any new ideas, but I don't know when I'll make any more progress on this issue.

  5. Alexander S. Kunz
    Posted 3 years ago #

    Thanks for looking into it David.

    I will perhaps ask the clever folks in the WordPress for Photographer community on Google+ to do some brainstorming. You know I'm pretty clueless myself when it comes to code and CSS. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Media Library Assistant
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.