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 » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] Widgetized Footer


 
Prev Previous Post   Next Post Next
  #1  
Old Jul 30, 2009, 09:58 PM
OrganicAnalyticsNow
 
14 posts · Jan 2009
[SOLVED] Widgetized Footer

Hello

I've been looking around on how to put widgets into my footer, and found something that looks like it would work with Atahualpa.

http://www.magicinthedesert.com/how-...dpress-footer/

In the tutorial they mention looking in the function.php, atahualpa has functions.php

The tutorial said to look for:
if ( function_exists(’register_sidebar’) )
register_sidebar();

atahualpa has this, which I added Footer from the copied Inner Right Sidebar code.

register_sidebar(array(
'name'=>'Footer',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<div class="widget-title"><h3>',
'after_title' => '</h3></div>',
));

At line 79 of footer.php is:

<!-- Footer -->
<td id="footer" colspan="<?php echo $bfa_ata['cols']; ?>">

<p>
<?php echo bfa_footer($bfa_ata['footer_style_content']); ?>
</p>
<?php if ($bfa_ata['footer_show_queries'] == "Yes - visible") { ?>
<p>
<?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
</p>
<?php } ?>

<?php if ($bfa_ata['footer_show_queries'] == "Yes - in source code") { ?>
<!--
<?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
-->
<?php } ?>

<?php wp_footer(); ?>

The tutorial said to use the code below. I replaced the code above with the code below.


<?php if ( function_exists(’dynamic_sidebar’) && dynamic_sidebar(Footer) ) : else : ?>

To end the dynamic sidebar, add this code:

<?php endif; ?>

It seemed to work, the Footer widget tab was on the widgets page, but when I checked, nothing was there. I'm close.. I can feel it. Just need that lil bit of help. I'm running this experiement on my desktop til I get it right.
Cheers!
 

Bookmarks

Tags
footer, widgetized footer, widgets

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Widgetized header yet? paulae New Versions, & Updating 16 Jun 28, 2009 04:23 PM


All times are GMT -6. The time now is 02:25 AM.


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