Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2973

    Just wondering if it would be possible to add an extra row of small boxes on the index page? I’d like to be able to feature six different areas. Thanks for your help.

    #40097

    Hey,

    the best way to add new boxes is to edit index.php manually. At the moment you can find following code line in it:

    $runs = 3;

    Change 3 to an higher value (to the number of boxes you want to display). Then you need to change following code line in mainpage.php:

    <?php $columns = 3;

    set $columns to the same value you chose for $runs

    Now you can set posts, pages, etc. as mainpage content under Twicet Options > Mainpage Options.

    If you want to adjust the width of each box individually just add following code style.css:

    #top .box1{
    width: 200px
    }

    Of course you need to adjust .box1 to the number of your box (i.e. the fourth box would look like .box4). You can adjust the width value as you like.

    #40098

    This is great. Thanks for the help. I’m trying to use a widget in the box and can’t seem to get the widget option to show up in the widgets wordpress admin page. Any ideas on how to get this to show. Otherwise it seems to be working perfectly. Thanks for the help.

    #40099

    Hey,

    open up functions.php and after this code:

    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'name' => 'Frontpage Box3',
    'before_widget' => '<div id="%1$s" class="small_box box3 widget %2$s"><span class="meta"></span>',
    'after_widget' => '</div>',
    'before_title' => '<h3 class="widgettitle">',
    'after_title' => '</h3>',
    ));

    add new widget functions for your other boxes. Replace Box3 (2 times) with your box number so it looks like:

    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'name' => 'Frontpage Box4',
    'before_widget' => '<div id="%1$s" class="small_box box4 widget %2$s"><span class="meta"></span>',
    'after_widget' => '</div>',
    'before_title' => '<h3 class="widgettitle">',
    'after_title' => '</h3>',
    ));

    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'name' => 'Frontpage Box5',
    'before_widget' => '<div id="%1$s" class="small_box box5 widget %2$s"><span class="meta"></span>',
    'after_widget' => '</div>',
    'before_title' => '<h3 class="widgettitle">',
    'after_title' => '</h3>',
    ));

    #40100

    Wonderful. Thank you so much for the quick and detailed responses. This is working perfectly. One last thing. Would it be possible to have four columns on the bottom row and three across the top? Just a thought for the future.

    #40101

    Currently this is not possible. I’m sorry…

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

The topic ‘Additional Row of of small boxes on home page’ is closed to new replies.