ThemeShaper Forums » Thematic


xoxo ul class on all widgets?

(5 posts)
  • Started 4 years ago by ajmartin
  • Latest reply from ErickB
  • This topic is not resolved
  1. ajmartin

    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.....


    Posted 4 years ago #
  2. 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.


    Posted 4 years ago #
  3. ErickB

    Is there an update on this?

    Thank you for all of your development of the Thematic theme.


    Posted 2 years ago #
  4. 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

    Posted 2 years ago #
  5. ErickB

    Thanks for the update and links!

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.