Hello,
How can I remove the widget area on the homepage?
Thank you.
Best,
Elodie
Hello,
How can I remove the widget area on the homepage?
Thank you.
Best,
Elodie
Hi Elodie,
Are you referring on the 4 columns (widget area) in the footer?
Regards,
Ismael
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:
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;
}Thank you.
Hey,
Glad Dude helped. :)
Regards,
Ismael
This topic has been closed to new replies.