Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #877109

    i just needed it for a customer.
    just edit masonry-gallery.php ( in enfold/config-templatebuilder/avia-shortcodes )
    since Line 75ff:

    array(
    	"name" 	=> __("Columns", 'avia_framework' ),
    	"desc" 	=> __("How many columns do you want to display?", 'avia_framework' ),
    	"id" 	=> "columns",
    	"type" 	=> "select",
    	"std" 	=> "flexible",
    	"subtype" => 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',
    		)),

    and add what you need for it ( for me i needed 7 columns) by default it only goes to 6 columns

    the best will be to have this edited masonry-gallery.php in the child-theme / shortcodes folder ( if you haven’t one – create it)

    and do this to functions.php of your child-theme:

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }

    now only one css is needed to rule this new column 100/7 aprox 14% :
    this to quick css:

    .av-masonry-col-7 .av-masonry-entry {
        width: 14%;
    }
    • This topic was modified 2 years, 4 months ago by  Guenni007.
    • This topic was modified 3 months, 4 weeks ago by  Jordan Shannon.
    #877989

    Hey Guenter,

    Thanks a lot for sharing, much appreciated!

    Best regards,
    Rikard

    #1163684

    hi guys, I cannot find the masonry-gallery.php for the life of me!

    I need to also add a 7th column to the masonry gallery.

    Cheers!
    Patrick

    #1163685

    Scratch that. I found it, mates!

    #1163693

    Hi,

    I’m glad you found it. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Masonry Gallery with more than 6 columns’ is closed to new replies.