• Resolved back2music

    (@back2music)


    I’d like to know is there a way to tell Photonic WP gallery via shortcode:
    1 – Minimum Tile height value for Random Justified and Mosaic Gallery
    2 – Forse Random and Mosaic galleries to load full sized pictures (native WP gallery option size=full has no effect in Photonick shortcode)

    Thank you in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    For #1, you can specify this for the Justified Grid (Photonic → Settings → Layouts → Random Justified Gallery – Minimum Tile height). The setting will apply to all your galleries that have this layout. It is currently not possible to control this for individual galleries.

    You cannot do #1 for Mosaic galleries, because mosaics behave differently. There is, however, a different option for Mosaics, Photonic → Settings → Layouts → Mosaic Layout – Trigger width, using which you can control when the mosaic layout should get triggered. This avoids showing tiny images for narrow layouts.

    For #2, do you mean you want to show full sized images in the main layout, scaled to fit? For that you need the tile_size attribute. The Photonic wizard shows you this option.

    Thread Starter back2music

    (@back2music)

    Thank you for your lightning fast reply!
    #1 – are you planning to add the Mosaic Trigger width and Random Tile height options for individual gallery shortcode?
    #2 – tile_size option works perfectly, thanks!

    Plugin Author Sayontan Sinha

    (@sayontan)

    #1 – are you planning to add the Mosaic Trigger width and Random Tile height options for individual gallery shortcode?

    It is a possibility, but given that users generally prefer a level of consistency for all their galleries, I have left the feature as it is for several years now (this feature was introduced in 2016). I might add it in the future, but it isn’t high on my to-do list for now.

    Thread Starter back2music

    (@back2music)

    I understand, no problem, thanks!

    Another question, if you don’t mind. I print a gallery directly from a page-id-template like so:
    <?php echo do_shortcode('[gallery category="200"]'); ?>
    and everything goes fine, but as soon as I change it to
    <?php echo do_shortcode('[gallery category="200" style="random"]'); ?>
    I get a blank area instead of the page content.
    Interesting that when if I’m moving a mouse over the blank area I can see the gallery links in the left bottom corner of the browser. The links open in a new page on click, as if the gallery plugin wasn’t there at all. The same Photonic code works fine inside the page.
    Is there a way to print Photonic gallery using PHP or may be JS?

    Thread Starter back2music

    (@back2music)

    I found the cause of the problem, it was my mistake – I just forgot to load the footer in the page-php. Everything work fine now, sorry to bother you with trifles.

    Plugin Author Sayontan Sinha

    (@sayontan)

    If your page has widget areas / blocks, you could always add a Photonic widget or block for this – you wouldn’t need the custom code.

    Thread Starter back2music

    (@back2music)

    Thanks for the tip!
    I just trying to device a simple solution to print galleries on a page using dropdown where a user could select and see different attachment categories from my media library.
    For now I coded a dropdown using JS, but still have no idea how to use it to change category value in shortcode.
    I’m not sure if I should ask your advice on it in this topic though.

    Plugin Author Sayontan Sinha

    (@sayontan)

    I know that some folks try to use accordion plugins for this. I recall a thread from at least 4-5 years back when someone commented about using ACF for this, but I might be wrong.

    A rather radical suggestion would be to go to something like Flickr or SmugMug, which lets you have albums. You could use Photonic to show a bunch of albums together, on which you can click to show the photos therein.

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