Footer widgets
URL to the page in question:
-
I am using a previous version of you theme and I used the footer to hold a search widget and a widget that allowed one to sign up for our newsletter whether a pat was full width or not. After upgrading I no longer see a footer side bar. Is it possible to get this functionality back?
Bret,
Sorry for the trouble. You can add in footer widgets. Here’s what to do:
- Go to the Appearance section and select Edit.
- From the list of files on your right, choose footer.php and look for this spot:
<div id="footer-content">
- Right below that paste this:
and save your changes.
- Next edit widgets.php and look for this spot:
register_sidebar( array(
'id' => 'category',
'name' => __('Category Sidebar'),
'description' => __('Displays on archive pages (like categories)'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => ''
) );
and paste this right above that:
register_sidebar( array(
'id' => 'category',
'name' => __('Category Sidebar'),
'description' => __('Displays on archive pages (like categories)'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => ''
) );
- Save your changes and lastly edit style.css
- Scroll down to the bottom and paste this:
.footer-widgets {
margin-left: -4px;
margin-right: -5px;
margin-top: 9px;
clear: both;
}
.footer-widgets .widget {
width: 314px;
overflow: hidden;
float: left;
background-color: #ccc;
padding: 0;
margin: 0 5px 9px 4px;
}
.footer-widgets .widget p {
padding: 10px;
font-size: 14px;
}
.footer-widgets h4.widgettitle {
font-size: 24px;
color: #fff;
background-color: #2b4452;
padding: 5px;
margin-bottom: 2px;
}
and save your changes.
That should add in a footer widget section just above the copyright notice.
If you have any questions or trouble, just let me know.
Have a great week,
Bill
- The topic ‘Footer widgets’ is closed to new replies.