Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
which hook should i use to get an alternate sidebar? « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

which hook should i use to get an alternate sidebar?

(5 posts)
  • Started 5 years ago by snack
  • Latest reply from Chris
  • This topic is resolved
  1. snack
    Member

    hi. i want to call an alternate sidebar2.php for my blog. i'd like to do it from functions php. am i on the right track? what should i use?

    anybody?...

    Posted 5 years ago #
  2. snack
    Member

    rephrasing question: what's the correct way to conditionalize the actions of thematic_sidebar() in my functions.php? do i remove it's current actions, and then add my own or what?

    by conditionalize, i mean i want different actions for diff pages.

    and what the heck's the diff between and 'action hook' and a 'filter hook'?

    thx

    Posted 5 years ago #
  3. snack
    Member

    i'm talking to myself, but it's still nice to have answers, so for the next guy here you go!

    function conditional_sidebar() {
    	if (is_page()) {
    		// return FALSE for no sidebar
    		return TRUE;
    	} else {
    	// see get_sidebar in codex fmi
    	get_sidebar('blog');
    	}
    }
    add_filter('thematic_sidebar', 'conditional_sidebar');

    yay! next...

    Posted 5 years ago #
  4. shanoboy
    Member

    Ha, Thanks for following up with yourself. I used this!

    I want to do the same thing you are, only I'd still like to be able to use widgets. I don't see how you can if you are going to have a bunch of sidebars, unless you create new widget areas... which I have no idea how to do.

    Posted 5 years ago #

  5. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    Chris

    Moderator

    Hi,

    you could use Kaspars' Widget Context plugin.

    Or you could use the latest SVN copy of Thematic plus the new functionality: Something new 'bout widgetized areas

    Chris

    Posted 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183