Add a foother with three columns
I'm trying to get a footer with the columns. To do that I follow next website:
But I don't find any similar text in the archive functions.php register_sidebar(array( 'name' => 'footer', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h2>', 'after_title' => '</h2>', )); So I don't know where to add the text... I found a similar text in the archive widgets_init.php Do I have to include it there?? Thanks in advance |
Well I've introduced next code to functions.php
if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Footer', 'before_widget' => '<div id="%1$s">', 'after_widget' => '</div>', 'before_title' => '<h2>', 'after_title' => '</h2>', )); } Then to the subtemplate footer.php I've added: <div id="widgetfooter"> <?php if ( !function_exists('dynamic_sidebar') dynamic_sidebar('Footer') ) ?> </div> And works. But now I need to introduce the format. So I work the editor and fine style.css I added #widgetfooter { clear: both; margin: 0 10px;} /*Widget Footer*/ .widgetfooter { float: left; width: 30%; margin: 0 5px 0 5px; padding: 0 0 0 10px; border-radius: 8px;} .widgetfooter ul {padding-left: 15px;} But doesn't work. For example check the postion of the 2 widgets: www.geekland.hol.es |
edit the virtual temp-late 'footer.php' and use the 'dynamic_sidebar' limited php
|
All times are GMT -6. The time now is 10:55 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.