Hello,
I desire to have one full-width footer widget instead of the four columns. For example, to have an easily editable quote/text run along the bottom of the page. Does anyone have the coding solution to making this happen?
Thanks!
Hello,
I desire to have one full-width footer widget instead of the four columns. For example, to have an easily editable quote/text run along the bottom of the page. Does anyone have the coding solution to making this happen?
Thanks!
Hey,
Open up footer.php, find this code:
<?php
$columns = 1;
foreach ($k_option['custom']['footer'] as $footer_widget) //iterates 3 times creating 3 footer widget areas
{
$last = "";
if($columns == 4){$last = "last"; }
echo '<div class="footerColumn '.$footer_widget.' '.$last.'">';
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - '.$footer_widget) ) :
else : dummy_widget($columns); endif; // dummy widgets defined at the bottom of widgets.php
echo '</div>';
$columns++;
}
?>
and replace it with:
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer') ) ; ?>
Next, open up widgets.php, find this code:
$k_option['custom']['footer'] = array('column1','column2','column3','column4');
foreach ($k_option['custom']['footer'] as $footer_widget)
{
register_sidebar(array(
'name' => 'Footer - '.$footer_widget,
'before_widget' => '<div id="%1$s" class="box_small box widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgettitle">',
'after_title' => '</h3>',
));
}
and replace it with:
register_sidebar(array(
'name' => 'Footer',
'before_widget' => '<div id="%1$s" class="box_small box widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgettitle">',
'after_title' => '</h3>',
));
Upload both files and setup your widgets :)
James
Brilliant! Works perfectly. Greatly appreciated.
Glad that James could help you.
You must log in to post.