Jamie and Perry,
Thank you for your comments and suggestions. I haven't looked at this since Wednesday so you've given me something to try over the weekend.
I am using Firebug after reading about it in the useful tools thread. It is much better than my previous method of changing and re-uploading the file and I agree has the benefit of showing you how css works (although some bits are still beyond me).
Divs are new to me and I have to admit beyond my understanding. I've only used them previously when they were already included in a theme I was tweaking and not known what they actually did, so I've read about them this morning and now understand why they would help.
I have created a div, but I can't get the widgets into it, I assume this is something to do with them being in their own divs?? This is currently what is in my functions.php for the header widgets.
/*create new div for header widgets*/
function header_widgets() {?>
<div id="header_widgets">
</div>
<?php }
add_action('thematic_header','header_widgets',6);
/* Adding widgets into the header*/
function add_header_left($content) {
$content['Header Left'] = array(
'args' => array (
'name' => 'Header Left',
'id' => 'header-left',
'before_widget' => thematic_before_widget(),
'after_widget' => thematic_after_widget(),
'before_title' => thematic_before_title(),
'after_title' => thematic_after_title(),
),
'action_hook' => 'thematic_header',
'function' => 'thematic_header_left',
'priority' => 6,
);
return $content;
}
add_filter('thematic_widgetized_areas', 'add_header_left');
// And this is our new function that displays the widgetized area
function thematic_header_left() {
if (is_sidebar_active('header-left')) {
echo thematic_before_widget_area('header-left');
dynamic_sidebar('header-left');
echo thematic_after_widget_area('header-left');
}
}
function add_header_middle($content) {
$content['Header Middle'] = array(
'args' => array (
'name' => 'Header Middle',
'id' => 'header-middle',
'before_widget' => thematic_before_widget(),
'after_widget' => thematic_after_widget(),
'before_title' => thematic_before_title(),
'after_title' => thematic_after_title(),
),
'action_hook' => 'thematic_header',
'function' => 'thematic_header_middle',
'priority' => 6,
);
return $content;
}
add_filter('thematic_widgetized_areas', 'add_header_middle');
// And this is our new function that displays the widgetized area
function thematic_header_middle() {
if (is_sidebar_active('header-middle')) {
echo thematic_before_widget_area('header-middle');
dynamic_sidebar('header-middle');
echo thematic_after_widget_area('header-middle');
}
}
function add_header_right($content) {
$content['Header Right'] = array(
'args' => array (
'name' => 'Header Right',
'id' => 'header-right',
'before_widget' => thematic_before_widget(),
'after_widget' => thematic_after_widget(),
'before_title' => thematic_before_title(),
'after_title' => thematic_after_title(),
),
'action_hook' => 'thematic_header',
'function' => 'thematic_header_right',
'priority' => 6,
);
return $content;
}
add_filter('thematic_widgetized_areas', 'add_header_right');
// And this is our new function that displays the widgetized area
function thematic_header_right() {
if (is_sidebar_active('header-right')) {
echo thematic_before_widget_area('header-right');
dynamic_sidebar('header-right');
echo thematic_after_widget_area('header-right');
}
}
Any help would be much appreciated. Thank you.