Tagged: enfold, Portfolio, thumbnails
Hi,
thank you for the great theme,
however I would like to make the portfolio being able to display in 6 columns so all 6 drivers on this page are in one line: http://www.lpgruppe.com/scuderiacorsa/?page_id=20
I have managed to edit with the following:
Edit config-templatebuilder > avia-shortcodes > portfolio.php, find this code on line 70:
/* __(‘5 Columns’, ‘avia_framework’ )=>’5′, */
Replace it with
__(‘5 Columns’, ‘avia_framework’ )=>’5′,
but then if I try the same for 6 columns it doesn’t work as expected or I think that I need additional CSS somewhere.
Could you please point me where can I tweak in order to achieve the desired effect?
Thank you in advance!,
Regards,
Mihail
In wp-contentthemesenfoldconfig-templatebuilderavia-shortcodesportfolio.php search for
switch($columns)
{
case "1": $grid = 'av_fullwidth'; if($preview_mode == 'auto') $image_size = 'large'; break;
case "2": $grid = 'av_one_half'; break;
case "3": $grid = 'av_one_third'; break;
case "4": $grid = 'av_one_fourth'; if($preview_mode == 'auto') $image_size = 'portfolio_small'; break;
case "5": $grid = 'av_one_fifth'; if($preview_mode == 'auto') $image_size = 'portfolio_small'; break;
}
and define a new case for “6” columns:
switch($columns)
{
case "1": $grid = 'av_fullwidth'; if($preview_mode == 'auto') $image_size = 'large'; break;
case "2": $grid = 'av_one_half'; break;
case "3": $grid = 'av_one_third'; break;
case "4": $grid = 'av_one_fourth'; if($preview_mode == 'auto') $image_size = 'portfolio_small'; break;
case "5": $grid = 'av_one_fifth'; if($preview_mode == 'auto') $image_size = 'portfolio_small'; break;
case "6": $grid = 'av_one_sixth'; if($preview_mode == 'auto') $image_size = 'portfolio_small'; break;
}