Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26591

    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

    #130971

    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;
    }

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

The topic ‘Portfolio 6 columns’ is closed to new replies.