Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Add a foother with three columns (http://forum.bytesforall.com/showthread.php?t=19038)

esbrinartot Dec 4, 2012 02:22 PM

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

esbrinartot Dec 4, 2012 03:34 PM

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

juggledad Dec 4, 2012 05:28 PM

edit the virtual temp-late 'footer.php' and use the 'dynamic_sidebar' limited php


All times are GMT -6. The time now is 03:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.