[buddypress-trac] [BuddyPress] #2616: Add a hook to unregister Sidebars in BP-Default from Child Theme functions.php

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Nov 6 21:35:57 UTC 2010


#2616: Add a hook to unregister Sidebars in BP-Default from Child Theme
functions.php
--------------------------+-------------------------------------------------
  Reporter:  Bowromir     |       Owner:                                            
      Type:  enhancement  |      Status:  closed                                    
  Priority:  normal       |   Milestone:  Future Release                            
 Component:  Core         |     Version:                                            
Resolution:  worksforme   |    Keywords:  sidebar, register, bp-default, child theme
--------------------------+-------------------------------------------------
Changes (by boonebgorges):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 Actually, I take back that milestone change. Put the following in your
 child theme to unregister bp-default's sidebar:

 {{{
 function unregister_bp_sidebar() {
         unregister_sidebar( 'sidebar-1' );
 }
 add_action( 'wp_head', 'unregister_bp_sidebar' );
 }}}

 I'm not entirely sure why it has to be hooked so late in the process
 ('wp_head') but it does.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2616#comment:5>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list