Looking at the source code it appears that every widget would be proceeded by
<ul class="xoxo">
Is there any easy way to filter this out? I am using the widget areas to add images etc and they dont fit the ul > li format that well.....
tia,
aj
Looking at the source code it appears that every widget would be proceeded by
<ul class="xoxo">
Is there any easy way to filter this out? I am using the widget areas to add images etc and they dont fit the ul > li format that well.....
tia,
aj
Hi aj,
the <ul class="xoxo"> is created by thematic_before_widget_area($hook).
This function can be filtered, but I need to add one more thing to the core to approve this filter.
Will send an update on this later today including a best practise guide.
Chris
Is there an update on this?
Thank you for all of your development of the Thematic theme.
Erick
well it is in thematic core, so you can filter it.
here's the source
// this function returns the opening CSS markup for the widget area
function thematic_before_widget_area($hook) {
$content = "\n";
if ($hook == 'primary-aside') {
$content .= '<div id="primary" class="aside main-aside">' . "\n";
} elseif ($hook == 'secondary-aside') {
$content .= '<div id="secondary" class="aside main-aside">' . "\n";
} elseif ($hook == '1st-subsidiary-aside') {
$content .= '<div id="first" class="aside sub-aside">' . "\n";
} elseif ($hook == '2nd-subsidiary-aside') {
$content .= '<div id="second" class="aside sub-aside">' . "\n";
} elseif ($hook == '3rd-subsidiary-aside') {
$content .= '<div id="third" class="aside sub-aside">' . "\n";
} else {
$content .= '<div id="' . $hook . '" class="aside">' ."\n";
}
$content .= "\t" . '<ul class="xoxo">' . "\n";
return apply_filters('thematic_before_widget_area', $content);
}
here's a basic "how-to" for using filters
Thanks for the update and links!
This topic has been closed to new replies.