Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Adding Widgets to Footer (http://forum.bytesforall.com/showthread.php?t=5190)

MyJourneytoMillions Jan 7, 2010 01:31 PM

Adding Widgets to Footer
 
I have 3 columns working out in my footer right now.
http://www.myjourneytomillions.com

Would it be cleaner to do with widgets? If so, how do I set up the css to look similar?

Thanks!

juggledad Jan 7, 2010 01:52 PM

I don't know if it would be cleaner soince I don't know how you did what you did. ut to do it you could use
HTML Code:

<?php bfa_widget_area('name=footer_widgets area&cells=3&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>'); ?>
and put it in ATO->Style & edit FOOTER->Footer: Content then style it with CSS inserts

MyJourneytoMillions Jan 7, 2010 02:12 PM

I already have CSS for the current set up. Can I use that? My current footer code looks like this:


Quote:

span style="background:#333333;">
<div class="bblock">
<table id="myfooter" border="0" cellspacing="0" cellpadding="0">



<tr>
<td>
<h4 style="color:#777777;">Popular Posts</h4>
<div class="footercol1">
<span style="list-style:none;line-height:1.5em;">

<?php popularPosts('count=7'); ?>



</span>

<h4 style="color:#777777;">Tags</h4>
<div class="footercol1">
<span style="list-style:none;line-height:1.5em;">
<?php ctc(25); ?>

</span>
</div>
</td>
<td style="list-style:none;">
<h4 style="color:#777777;">Recent Comments</h4>
<div class="footercol2">
<span style="list-style:none;line-height:1.5em;">
<?php
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_date_gmt, comment_approved,
comment_type,comment_author_url,
SUBSTRING(comment_content,1,30) AS com_excerpt
FROM $wpdb->comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
$wpdb->posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND
post_password = ''
ORDER BY comment_date_gmt DESC
LIMIT 7";
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
$output .= "\n";
foreach ($comments as $comment) {
$output .= "\n<li>".strip_tags($comment->comment_author)
.": " . "<a href=\"" . get_permalink($comment->ID) .
"#comment-" . $comment->comment_ID . "\" title=\"on " .
$comment->post_title . "\">" . strip_tags($comment->com_excerpt)
."&hellip;</a></li>";
}
$output .= "\n";
$output .= $post_HTML;
echo $output;?>
</div>
</span>

</td>
<td style="list-style:none;">
<h4 style="color:#777777;"> Progress Bars </h4>
<div class="footercol3">
<span style="list-style:none;line-height:1.5em;">
Credit Card Debt:
<script type="text/javascript">drawProgressBar('#0000ff', 200, 100);</script>
$16,884 of $16,884 Done!
</span>
</div>
</td>
</tr>
</table>
And wow! Juggle head you are on top of this stuff! It is appreciated.


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

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