[buddypress-trac] [BuddyPress] #4961: Overriding CSS in plugin doesn't seem to work

buddypress-trac noreply at wordpress.org
Sun Apr 28 19:18:08 UTC 2013


#4961: Overriding CSS in plugin doesn't seem to work
-------------------------+------------------------------
 Reporter:  karmatosed   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Core         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by r-a-y):

 You can't use `$this` because PHP needs to know what it's referencing.

 BP has a hook a bit lower in that class method called
 `'bp_theme_compat_actions'` you can use which will allow you to reference
 that class.

 Try this:

 {{{
 function my_remove_styles( $theme ) {
         remove_action( 'bp_enqueue_scripts', array( $theme,
 'enqueue_styles' ) );
 }
 add_action( 'bp_theme_compat_actions', 'my_remove_styles' );
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4961#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list