ThemeShaper Forums » Thematic


add_action thematic_belowheader not working suddenly

(2 posts)
  • Started 8 years ago by wlanni
  • Latest reply from wlanni
  • This topic is not resolved
  1. wlanni


    As of a couple days ago, critical bits of the site quit working right. I'm not sure if it was updating wordpress or updating thematic, as I didn't notice problems when I did the updates, but now I'm concerned I had pages cached and didn't see the problems immediately. Anyway, it doesn't matter now.

    What does matter is for some reason content that was supposed to appear in a custom thematic_belowheader aside has disappeared.

    Here's the functions I added:

    // This will create a below-header widget area
    function my_widgets_init() {
    'name' => 'Below Header Aside',
    'id' => 'below-header-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => "<h3 class=\"widgettitle\">",
    'after_title' => "</h3>\n",
    add_action( 'init', 'my_widgets_init' );

    // adding the widget area to your child theme
    function my_header_widgets() {
    if ( function_exists('dynamic_sidebar') && is_sidebar_active('below-header-aside') ) {
    echo '<div id="below-header">'. "\n" . '<div id="below-header-aside" class="aside">'. "\n" . '<ul class="xoxo">' . "\n";
    echo '' . "\n" . '</div><!-- #below-header-aside .aside -->'. "\n" . '</div><!-- #below-header -->'. "\n";
    add_action('thematic_belowheader', 'my_header_widgets');

    Posted 8 years ago #
  2. wlanni

    I should add that the widget appeared, no problem. I can add content to it in the control panel.

    However, the html from the my_header_widgets function is not appearing. I'm at a total loss.

    Posted 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.