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

    Hello,

    How can I remove the widget area on the homepage?

    Thank you.

    Best,

    Elodie

    #105098

    Hi Elodie,

    Are you referring on the 4 columns (widget area) in the footer?

    Regards,

    Ismael

    #105099

    Hello,

    Yes, to bad that there is no way to choose 0. So I picked 1 but I don’t need it.

    Thank you.

    Elodie.

    URL:

    #105100

    If you want to remove the widget area on all pages delete following code in footer.php:

    <!-- ####### FOOTER CONTAINER ####### -->
    <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>

    </div>
    <!-- ####### END FOOTER CONTAINER ####### -->

    If you just want to “hide it” on the homepage you can use following css code (add it to css/custom.css):

    .home #footer{
    display: none !important;
    }

    #105101

    Thank you.

    #105102

    Hey,

    Glad Dude helped. :)

    Regards,

    Ismael

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

The topic ‘Remove widget area on homepage’ is closed to new replies.