Reply To: Portfolio Snippets on Home Page 1

#781
livemesh
Keymaster

Here is solution to the problem you are facing –

Pls modify the file [theme-directory]/framework/functions/utility-functions.php and change the php function below to following –

function mo_get_column_style($column_count = 2) {
    $style_class = '';
    switch ($column_count) {
        case 2:
            $style_class = "sixcol";
            break;
        case 3:
            $style_class = "fourcol";
            break;
        case 4;
            $style_class = "threecol";
        case 5;
            $style_class = "one-fifth";
    }
    return $style_class;
}

Next, to the custom.css file or the Custom CSS tab in theme options, pls input the following code –

.one-fifth { width: 18.4%; margin-right: 2%;float: left; min-height: 1px;}

and now when you use something like –

[show_post_snippets post_type="portfolio" number_of_columns=5 post_count=10 image_size="small" show_meta=false layout_class="post-snippets full-width-snippets" display_text=false]

you should see five columns aligned along a single row.