Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter omniafausta

    (@omniafausta)

    the ‘problem’ with 6 appears to not be a problem (found a css solution)
    But I still have the question of how to get more than 6 thumbnails in a row.

    Thread Starter omniafausta

    (@omniafausta)

    Ok, I found the setting that will remedy my problem.
    In the document admin/settings/template-settings/global-settings.php

    $this->form_fields = apply_filters( $this->option_name . '_settings_fields', array(
    
    			array(
    				'name' 		=> __( 'Portfolio Item Display', 'a3_portfolios' ),
                    'type' 		=> 'heading',
               	),
    			array(
    				'name' 		=> __( 'Maximum Items Per Row', 'a3_portfolios' ),
    				'desc' 		=> __( 'Maximum Items to show per row in larger screens.', 'a3_portfolios' ),
    				'id' 		=> 'portfolio_items_per_row',
    				'type' 		=> 'slider',
    				'default'	=> 4,
    				'min'		=> 1,
    				'max'		=> 6,
    				'increment'	=> 1,
    			)

    if I change the max from 6 to 10, I get the result I need. (If I also do some css tweeks)

    But of course I do not want to make the change in the plugin itself (because the problem would return if I update…)

    How, do I make this change in the childtheme I am making??

    Help is appreciated!!

    Plugin Author Steve Truman

    (@a3rev)

    Hi,

    You can easy to change to 10 or any number you want by use this filter tag ‘a3_portfolio_get_col_per_row’

    We added that tag support you can filter the value:

    apply_filters( 'a3_portfolio_get_col_per_row', $number_columns );

    So you can added the custom code into functions.php of your childtheme something like below code :

    function custom_portfolio_thumbs_per_row( $number = 6 ) {
    $number = 10;
    return $number;
    }
    add_filter( 'a3_portfolio_get_col_per_row', 'custom_portfolio_thumbs_per_row' );
    Thread Starter omniafausta

    (@omniafausta)

    Hi,

    Thanks for your reply, this was exactly what we needed!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘portfolio item display maximum items per row’ is closed to new replies.