• Resolved Deleted Account

    (@myst5243)


    Hello,

    To Jeremy Herve @jeherve and all Jetpack team.

    I’ve been using Jetpack Carousel Gallery for awhile. It is great and working perfectly. But I have request. By any chance, can you create a menu for Gallery default option? Jetpack have 6 types of gallery: Thumbnail grid, Tiled mosaic, Square tiles, Circle, Tiled columns, and Slideshow.

    I’m personally prefer thumbnail grid with 4 columns and thumbnail size image. 99% of my posts using this very same setting. But it is pain to change to this setting every time I create new gallery. Sometimes I create multiple gallery in 1 single post.

    So by any chance, can you create menu for default setting? Where I and other users don’t have to change gallery setting each time we create gallery, but yet we still can manually override this setting on each of gallery in case it needed. Thanks in advance.

    Regards,

    Shah.

Viewing 2 replies - 1 through 2 (of 2 total)
  • lamday

    (@lamdayap)

    While Jetpack doesn’t include an option to allow you to change the default Gallery type, you can use the jetpack_default_gallery_type filter to change that on your site. You can find out how to use that filter here:
    https://developer.jetpack.com/hooks/jetpack_default_gallery_type/

    Thread Starter Deleted Account

    (@myst5243)

    Hello @lamdayap

    Thank you for your answer sir. I have 3 more questions.

    1. If I put this code, will it change default of any previous gallery created earlier?
    2. I assume that I should put this code at functions.gallery.php, correct? But where should I put this code to make it work? First paragraph? End of document? Or it doesn’t matter?
    3. I don’t get how to apply this filter below. Can you provide me an example? Is there any other tutorial? I really don’t want to break my site because of my typo.

    function jeherve_custom_gallery_type() {
            return 'circle';
    }
    add_filter( 'jetpack_default_gallery_type', 'jeherve_custom_gallery_type', 30 );

    Thanks,

    Shah

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Gallery Menu’ is closed to new replies.