We're merging with GenerateBlocks! Learn more here.

[Resolved] apply masonry layout from WP Show Posts Pro to default WP image gallery

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support apply masonry layout from WP Show Posts Pro to default WP image gallery

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9745
    Drew
    Participant

    Hi Tom, I have a shot in the dark question here but is there any way to apply the masonry gallery layout from WP Show Posts Pro to the default wordpress gallery function?

    We’ve been looking for straightforward masonry gallery plugins but they all either offer too little, require their own proprietary admin panels, or load a ton of functions that aren’t needed.

    #9762
    Tom
    Keymaster

    Hi there,

    Unfortunately, that wouldn’t work. I would bet there’s a simple solution/plugin out there that applies masonry to core WP galleries, though? Surprising that there isn’t.

    #9770
    Drew
    Participant

    Thanks for confirming. And yes, there are lots of plugins but here’s what I’m finding:

    • They are poorly coded and load up the wp-options table with a lot of autoloaded rows
    • Actual functionality is limited and requires so much modification that it would be easier to code something from scratch.
    • The jQuery classes use common class names and throw a lot of conflicts.
    • They require a dedicated menu item and admin panel to use along with shortcodes instead of simply applying to default WP galleries.
    • All of the premium versions pack way too much into the featureset (which I get) and are overkill.

    Are you using a specific script for that functionality or did you code it from scratch? At the very least, if we do end up coding something ourselves and you’re using a specific script, it would be smart for us to pull the same resource.

    Drew

    #9778
    Tom
    Keymaster

    We’re using jQuery Masonry: https://masonry.desandro.com

    It’s super easy to initiate, and the script is actually packaged in with WP so you can enqueue it like this:

    add_action( 'wp_enqueue_scripts', function() {
        wp_enqueue_script( 'jquery-masonry' );
    } );
    #9786
    Drew
    Participant

    Thanks so much for the tip, I’m sure we’ll just see about integrating it directly.

    #9808
    Tom
    Keymaster

    No problem 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.