Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

[SOLVED] how to add 2 or 3 widgets to theme footer?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 9, 2012, 02:27 PM
fafa
 
39 posts · Dec 2012
hi

I want to add 3 widgets in footer like sidebar widgets ?(like their css) is it possible ?how?

thanks.
  #2  
Old Dec 9, 2012, 07:02 PM
juggledad's Avatar
juggledad
 
22,263 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
have you looked at the limited php code?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 10, 2012, 02:50 AM
fafa
 
39 posts · Dec 2012
I don't know...

but I see some post in web like this :

http://www.tipsandtricks-hq.com/how-...es-footer-1033


but the style of theme are not good.

first : I want style of them be look like sidebar widgets.

second : if it possible how we can make new footer widgets 2 or 3 without use that code and function.
  #4  
Old Dec 10, 2012, 10:37 AM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by fafa
I want to add 3 widgets in footer like sidebar widgets ?(like their css) is it possible ?how?
Insert this code into footer.php where you want each widget, giving each widget a unique name:

PHP Code:
<?php dynamic_sidebar'[_widget_name_]' ); ?>
Save the file.

Then, from the dashboard, go to widgets. The new widgets will be there on the bottom right. Click on them and you can put your footer widget content into them.

If you want to put more than the limited set of PHP code into the widgets, you may need the Executable PHP widget plugin.

I hope this helps.
  #5  
Old Dec 10, 2012, 02:22 PM
fafa
 
39 posts · Dec 2012
Quote:
Originally Posted by jerryc
Insert this code into footer.php where you want each widget, giving each widget a unique name:

PHP Code:
<?php dynamic_sidebar'[_widget_name_]' ); ?>
Save the file.

Then, from the dashboard, go to widget . The new widgets will be there on the bottom right. Click on them and you can put your footer widget content into them.

that's looks very good ...
but there's problem for me!!!

1. i put the code in footer
2. the new widget appear in dashboard
3. i put for example : tags widget in it and save it

but no thing show in site and when i reload widget tab in dashboard there is no tags widget in new widget .

what's the problem ?

I'd like to use code instead of use plugin it's better... but thanks for plugin.

how can solve it ?
  #6  
Old Dec 10, 2012, 04:41 PM
juggledad's Avatar
juggledad
 
22,263 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
export your theme settings and attach them to a reply
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Dec 11, 2012 at 04:49 AM.
  #7  
Old Dec 11, 2012, 03:58 AM
rosetrees
 
102 posts · Mar 2009
Delete whatever you already have in footer.php (sub templates) and enter this instead:

<div id="footer-bg">
<div id="footer" class="row">
<div id="widgetarea-three" class="col4" style="padding: 0 10px">
<?php dynamic_sidebar( 'Widget Area THREE' ); ?>
</div>
<div id="widgetarea-four" class="col4"style="padding:0 10px">
<?php dynamic_sidebar( 'Widget Area FOUR' ); ?>
</div>
<div id="widgetarea-five" class="col4"style="padding:0 10px">
<?php dynamic_sidebar( 'Widget Area FIVE' ); ?>
</div>
</div>

</div>

This way each widget area can be styled individually in in layout.css if required (widgetarea-three, etc). If you don't want to do that, they will pick up the general widget styling and you can just call them all widgetarea-one, which already exists in layout.css.

The important thing is the bit in brackets (), which gives each area its own name so that you can add content to each separate widget area.
  #8  
Old Dec 11, 2012, 05:42 AM
fafa
 
39 posts · Dec 2012


Very GOOOOOOOOOOOOOOOOOOOOOOOD

THANKSssssssssssssssssssssssssss

IT'S SOLVED.....

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Footer widgets and full-width footer background image problem Viktoria Sidebars & Widgets 4 Dec 2, 2012 02:06 PM
footer widgets Eric Sidebars & Widgets 5 Nov 19, 2010 09:44 AM
[SOLVED] footer widgets samirtv Sidebars & Widgets 4 Jul 25, 2010 05:33 PM
Adding Widgets to Footer MyJourneytoMillions Sidebars & Widgets 2 Jan 7, 2010 02:12 PM


All times are GMT -6. The time now is 06:19 PM.


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