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

    Hi tehre,

    Is it possible to create a 5 or 6 column portfolio?

    Thank you!

    #101691

    Hi BenWorx,

    You can add an option for a 5 column portfolio when creating portfolios with the Theme Options>Portfolio but not 6 columns.

    In your theme files open includes>admin>register-admin-options.php . Look for:

    "subtype" => array(	'1 Column'=>'1',
    '2 Columns'=>'2',
    '3 Columns'=>'3',
    '4 Columns'=>'4',
    )),

    replace it with:

    "subtype" => array(	'1 Column'=>'1',
    '2 Columns'=>'2',
    '3 Columns'=>'3',
    '4 Columns'=>'4',
    '5 Columns'=>'5',
    )),

    Save the file back on the server in the same spot and then open includes>loop-portfolio.php and look for:

    switch($avia_config['portfolio_columns'])
    {
    case "1": $grid = 'fullwidth'; $image_size = 'fullsize'; break;
    case "2": $grid = 'one_half'; break;
    case "3": $grid = 'one_third'; break;
    case "4": $grid = 'one_fourth'; break;
    }

    replace it with:

    switch($avia_config['portfolio_columns'])
    {
    case "1": $grid = 'fullwidth'; $image_size = 'fullsize'; break;
    case "2": $grid = 'one_half'; break;
    case "3": $grid = 'one_third'; break;
    case "4": $grid = 'one_fourth'; break;
    case "5": $grid = 'one_fifth'; break;
    }

    Now you can choose 5 columns when creating portfolio pages in the Theme Options>Portfolio page. Tested on Updated live installation just now as well.

    Make sure that when doing any updates to the theme you backup these files so you can re-apply the changes.

    Six column isn’t possible as it isn’t already coded into the grid framework. You would need to create all the column css for it if you really needed 6 columns.

    Regards,

    Devin

    #101692

    hello. maybe i can ask my question here, since this topic is already open. i want to do the exact same thing for coherence. shouldn’t matter since its based on avia too, right? however.. i made the changes and it doesn’t work for me. no errors, but no 5th column option showing up either.

    #101693

    Hi,

    You can do what Devin said and it will work with a minor alteration for coherence.

    Open includes>admin>register-admin-options.php, find this code

    "subtype" => array(	'1 Column'=>'1',
    '2 Columns'=>'2',
    '3 Columns'=>'3',
    '4 Columns'=>'4',
    )),

    Replace it with this

    "subtype" => array(	'1 Column'=>'1',
    '2 Columns'=>'2',
    '3 Columns'=>'3',
    '4 Columns'=>'4',
    '5 Columns'=>'5'
    )),

    On your loop-portfolio.php, find this code

    switch($avia_config['portfolio']['portfolio_columns'])
    {
    case "1": $grid = 'fullwidth'; $image_size = 'fullsize'; break;
    case "2": $grid = 'one_half'; break;
    case "3": $grid = 'one_third'; break;
    case "4": $grid = 'one_fourth'; $image_size = 'portfolio_small'; break;
    }

    Replace it with this.

    switch($avia_config['portfolio']['portfolio_columns'])
    {
    case "1": $grid = 'fullwidth'; $image_size = 'fullsize'; break;
    case "2": $grid = 'one_half'; break;
    case "3": $grid = 'one_third'; break;
    case "4": $grid = 'one_fourth'; $image_size = 'portfolio_small'; break;
    case "4": $grid = 'one_fifth'; $image_size = 'portfolio_small'; break;
    }

    Now you can choose the 5 column on Theme Options > Portfolio.

    Regards,

    Ismael

    #101694

    switch($avia_config)

    {

    case "1": $grid = 'fullwidth'; $image_size = 'fullsize'; break;

    case "2": $grid = 'one_half'; break;

    case "3": $grid = 'one_third'; break;

    // case "4": $grid = 'one_fourth'; $image_size = 'portfolio_small'; break;

    case "4": $grid = 'one_fifth'; $image_size = 'portfolio_small'; break;

    }

    worked for me. i had to remove the case “4”: $grid = ‘one_fourth'; $image_size = ‘portfolio_small'; break;

    thank you!

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

The topic ‘Creat 5 or 6 columns portfolio’ is closed to new replies.