• Resolved blackflamingo

    (@blackflamingo)


    Hi,

    is it possible to create a masonry gallery with 8 Columns?

    best,

    Torsten

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Razvan Aldea

    (@raldea89)

    Hello Torsten,

    You can do that by adding the following PHP Snippet to your child theme’s functions.php file or using a plugin to add PHP Snippets:

    add_filter( 'modula_gallery_fields', 'custom_modula_fields', 15 );

    function custom_modula_fields( $settings ) {

    // Add 7 & 8 columns for the grid type
    $settings['general']['grid_type']['values']['7'] = __( 'Seven Columns(7)', 'modula' );
    $settings['general']['grid_type']['values']['8'] = __( 'Eight Columns(8)', 'modula' );

    return $settings;
    }

    This way, you can specify for each gallery in part the number of columns by selecting the number of columns you wish.

    Warmly,
    Razvan

    Thread Starter blackflamingo

    (@blackflamingo)

    Hi Razvan,

    thanks for your reply, I installed “Code Snippets” and your code works perfectly well!

    best,

    Torsten

    Plugin Author Razvan Aldea

    (@raldea89)

    Awesome news ??

    Warmly,
    Razvan

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