Tagged: , ,

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

    Hi,

    I would like to have my footer widgets in that way (2 small columns – like if I set the theme options to “4 columns” -, but now 1 wider column at the right of them):

    How is this possible?

    The footer.php doesn’t say much too me:

    <div class='container_wrap' id='footer'>

    <div class='container'>

    <?php

    //create the footer columns by iterating

    $columns = avia_get_option('footer_columns');

    $firstCol = 'first';

    switch($columns)

    {

    case 1: $class = ''; break;

    case 2: $class = 'one_half'; break;

    case 3: $class = 'one_third'; break;

    case 4: $class = 'one_fourth'; break;

    case 5: $class = 'one_fifth'; break;

    }

    //display the footer widget that was defined at appearenace->widgets in the wordpress backend

    //if no widget is defined display a dummy widget, located at the bottom of includes/register-widget-area.php

    for ($i = 1; $i <= $columns; $i++)

    {

    echo "<div class='$class $firstCol'>";

    if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - column'.$i) ) : else : avia_dummy_widget($i); endif;

    echo "</div>";

    $firstCol = "";

    }

    ?>

    </div>

    The drag&drop functionality in WordPress’ widget area should be maintained.

    Thanks a lot.

    #106992

    Hi,

    On Theme Options > Footer > Select 3 Columns. Then place something like this on your custom.css

    #footer .one_third:last-child {
    width: 50% !important;
    }

    #footer .one_third.first, #footer .one_third:nth-child(2) {
    width: 23% !important;
    }

    Regards,

    Ismael

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

The topic ‘CORONA footer columns: how to change the columns with a 2/3 widget width?’ is closed to new replies.