Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Add a foother with three columns


  #1  
Old Dec 4, 2012, 03:22 PM
esbrinartot
 
31 posts · Nov 2012
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
  #2  
Old Dec 4, 2012, 04:34 PM
esbrinartot
 
31 posts · Nov 2012
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
  #3  
Old Dec 4, 2012, 06:28 PM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
edit the virtual temp-late 'footer.php' and use the 'dynamic_sidebar' limited php
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
3/4 columns mod required. mimi Customization, Design, Programming... 3 Oct 25, 2011 04:51 PM
atahualpa 3 columns aresblade Sidebars & Widgets 2 Jun 8, 2010 05:47 PM
setting up columns rnickel44 Forum How-To 0 Aug 28, 2009 12:15 PM
2 Columns Instead of 3? virtualomega Header configuration & styling 1 Jul 29, 2009 08:24 PM


All times are GMT -6. The time now is 01:24 PM.


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