well….widgetizing is widgetizing really…. things will differ theme by theme….but here’s a generic run through of how I add widget areas wherever I want them.
first off, this goes in functions.php (between the <?php tags)
register_sidebar(array(
'name'=>'widget1',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
you can use the same code over and over (just change the widget1 name to a different name for each area)
Thenk in your template (footer.php, index.php, header.php, etc) put this code where you want your new widget area to appear.
<div class="widget1">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('widget1') ) : ?>
<?php endif; ?>
</div>
So now it’s registered, you can put a widget in it, and you have it on your template….but you gotta style it. That’s the part that is really theme specific…for instance, this worked fine for me:
.widget1 {
float: left;
width: 340px;
}
but you’ll need to tweak it of course
Thanks a lot for posting this detail RVoodoo – I’ll go through the steps.
RVoodoo – your instructions very perfect.
Thanks again.