ThemeShaper Forums » Thematic

[closed]

Problem with thematic_before_widget_area

(2 posts)
  • Started 12 years ago by Shaddix
  • Latest reply from em hr
  • This topic is not resolved

Tags:

  1. Shaddix
    Member

    hi,

    I'm trying to code a logo above the sidebar of my thematic style

    I have written the folowing code in the functions file:

    function thematic_logo_image() {
    		echo '<div id="logo-image"><img src="' ;
    		echo bloginfo('stylesheet_directory');
    		echo '/images/logo.jpg" /></div>';
    }
    add_action('thematic_before_widget_area','thematic_logo_image');

    this puts the logo in the position I want, but it forces my text-widget that I have in "primary" to under my container and it removes all it's styles

    I'm realy confused about this, so if anyone could give me a help with it...

    Posted 12 years ago #
  2. HI Shaddix-

    The cause of you problem is you are filtering out the markup of the widget areas. I suggest you do not use that filter... instead try:

    add_action('thematic_abovemainasides','thematic_logo_image');

    or try one of the other action hooks found in the Thematic's sidebar templates.

    Also

    echo bloginfo()

    is not necessary since bloginfo() echoes itself.

    -Gene

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.