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

    Hi,

    Is it possible to add more boxes under the 3 columns on the mainpage? So as an example it could display 6 posts

    Thanks

    Kristian

    #30932

    Sure, open up /framework/classes/kclass_display_box.php and find this code:

    function kclass_display_box($pagename, $boxname, $widgetname, $placeholder = array(), $default = 3)

    Change it to:

    function kclass_display_box($pagename, $boxname, $widgetname, $placeholder = array(), $default = 6)

    Next, open up /theme_options/mainoage.php, and find this code:

    array(  "name" => "Mainpage - Column",
    "desc" => "How to populate Mainpage Columns",
    "id" => "mainpage_column",
    "widget" => "Mainpage Column",
    "type" => "boxes",
    "count" => 3),

    Change it to:

    array(  "name" => "Mainpage - Column",
    "desc" => "How to populate Mainpage Columns",
    "id" => "mainpage_column",
    "widget" => "Mainpage Column",
    "type" => "boxes",
    "count" => 6),

    You’ll probably need to tidy up the layout by editing the CSS, depending on your boxes’ content.

    #30933

    I went ahead and did was was suggested and it works well. Boxes 4 and 5 show up perfectly, but box 6 shows up on the 3rd row and leaves an empty spot where box 6 should have gone. Where in the CSS can I edit this?

    #30934

    I fixed it. Just add the following to your CSS:

    .wrapper .box6{

    margin:0;

    }

    #30935

    Glad that you solved the problem.

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

The topic ‘More boxes on Mainpage’ is closed to new replies.