Need help with my footer
-
hey, all! hope there’s someone out there who can help me.
i’m using the threat to creativity theme and would like to add a 3 column widgetized footer. i’ve found a few tutorials that says i should enter this code in my function.php first:
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebars(5,array(
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h4>’,
‘after_title’ => ‘</h4>’,
));
?>unfortunately they don’t say where exactly i should put it. my whole original code looks like this:
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar();
?><?php function post_thumb() {
$files = get_children(‘post_parent=’.get_the_ID().’&post_type=attachment&post_mime_type=image’);
if($files) :
$keys = array_reverse(array_keys($files));
$j=0;
$num = $keys[$j];
$image=wp_get_attachment_image($num, ‘thumb’, false);
$imagepieces = explode(‘”‘, $image);
$imagepath = $imagepieces[1];
$thumb=wp_get_attachment_image($num, ‘thumb’, false);
print “$thumb<img src=’$thumb’ class=’thumbnail’ />”;
endif;
}
?>i’ve tried putting the new code on top, and the bottom. i even tried just putting on the new code :S i have no idea where i should insert it.
thanks to those who can help! 🙂
The topic ‘Need help with my footer’ is closed to new replies.