Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1198836

    this here is an old post of mine: https://kriesi.at/support/topic/masonry-gallery-with-more-than-6-columns/#post-877109
    that was a simple and easy to find way how many columns could be selected on masonry gallery.

    But how is it ruled on newest Enfold?
    i only found a place on popup-template-class.php

    $template[] = array(	
    				'name'	=> $desc_sizes[ $size ],
    				'desc'	=> __( 'How many columns do you want to use', 'avia_framework' ),
    				'id'	        => $id_sizes[ $size ],
    				'type'	=> 'select',
    				'subtype'	=> $subtype[ $size ],
    				'std'	=> $std[ $size ],
    			);

    but i can’t find the corresponding equivalents

    i’m browsing in the whole enfold code for: number_array( 2, 6, 1 …
    but nothing to find .
    So dear Developers – wheres the beef now ;) where to change to 7 Columns.

    Thanks

    • This topic was modified 4 years, 7 months ago by Guenni007.
    #1200452

    Hey Guenter,

    Sorry for the late reply.

    Please have a look at config-templatebuilder\avia-shortcodes\logoslider\logoslider.php line 217ff. Here you see how to customize the colums needed.

    Extend config-templatebuilder\avia-shortcodes\masonry_gallery\masonry_gallery.php line 299:

    
    
    						array(	
    								'type'			=> 'template',
    								'template_id'	=> 'columns_count_icon_switcher',
    								'subtype'		=> array(
    														'default'	=> array(
    																	__( 'Automatic, based on screen width', 'avia_framework' )	=> 'flexible',
    																	__( '2 Columns', 'avia_framework' )	=> '2',
    																	__( '3 Columns', 'avia_framework' )	=> '3',
    																	__( '4 Columns', 'avia_framework' )	=> '4',
    																	__( '5 Columns', 'avia_framework' )	=> '5',
    																	__( '6 Columns', 'avia_framework' )	=> '6',
    																	__( '7 Columns', 'avia_framework' )	=> '7'
    																),
    														'medium'	=> array(
    																	__( 'Automatic, based on screen width', 'avia_framework' )	=> 'flexible',
    																	__( '2 Columns', 'avia_framework' )	=> '2',
    																	__( '3 Columns', 'avia_framework' )	=> '3',
    																	__( '4 Columns', 'avia_framework' )	=> '4',
    																	__( '5 Columns', 'avia_framework' )	=> '5',
    																	__( '6 Columns', 'avia_framework' )	=> '6',
    																	__( '7 Columns', 'avia_framework' )	=> '7'
    																),		
    														'small'		=> array(
    																	__( 'Automatic, based on screen width', 'avia_framework' )	=> 'flexible',
    																	__( '2 Columns', 'avia_framework' )	=> '2',
    																	__( '3 Columns', 'avia_framework' )	=> '3',
    																	__( '4 Columns', 'avia_framework' )	=> '4',
    																	__( '5 Columns', 'avia_framework' )	=> '5',
    																	__( '6 Columns', 'avia_framework' )	=> '6',
    																	__( '7 Columns', 'avia_framework' )	=> '7'
    																),	
    														'mini'		=> array(
    																	__( 'Automatic, based on screen width', 'avia_framework' )	=> 'flexible',
    																	__( '2 Columns', 'avia_framework' )	=> '2',
    																	__( '3 Columns', 'avia_framework' )	=> '3',
    																	__( '4 Columns', 'avia_framework' )	=> '4',
    																	__( '5 Columns', 'avia_framework' )	=> '5',
    																	__( '6 Columns', 'avia_framework' )	=> '6',
    																	__( '7 Columns', 'avia_framework' )	=> '7'
    																)
    													),
    								'std'			=> array(
    														'default'	=> '3',
    														'medium'	=> '3',		
    														'small'		=> '3',	
    														'mini'		=> '3'
    													)
    							),
    
    

    Best regards,
    Günter

    #1200510

    Thanks – perfect : i didn’t look for $id_sizes in source.
    but nevertheless even if – i couldn’t extend that array : but now i understand the sizes as the screen-width options.
    the only thing to add for other participants here is of course to add the missing CSS instruction here:
    f.e.

    .av-masonry-col-7 .av-masonry-entry {
        width: 14.2%;
    }
    #1200514

    Hi,

    Glad we could help. Have a great day.

    Best regards,
    Günter

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Masonry Column Count’ is closed to new replies.