Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Add a foother with three columns


  #1  
Old Dec 4, 2012, 02: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, 03: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, 05:28 PM
juggledad's Avatar
juggledad
 
23,765 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



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


All times are GMT -6. The time now is 07:39 PM.


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