Skip to:

Opened 15 years ago

Closed 15 years ago

Last modified 10 years ago

#1003 closed enhancement (no action required)

bp_styles action hook is not initiated

Reported by: agentmaximus's profile agentmaximus Owned by:
Milestone: 1.1 Priority: minor
Severity: Version:
Component: Keywords:


I am trying to create a plugin. I have used the latest trunk of
buddypress (as of 12 Sept 2009). I used the skeleton component as a starting point. It uses the hook bp_style as the basis for adding the component's css.

I found that the css wasn't being loaded. Instead of using the action hook 'bp_styles', I found that I had to use the hook 'wp_head'.

In the hook function I also had to call wp_enqueue_style and follow
this with a call to wp_print_styles.

I can see that the bp_styles hook may have been deprecated. There will be a large number of plugins potentially impacted by this change in dependency on 'wp_head' hook.

It might make sense to hook the bp_styles function to the wp_head action for backward compatibility of plugins.

Change History (2)

#1 @DJPaul
15 years ago

  • Priority changed from major to minor
  • Type changed from defect to enhancement

#2 @apeatling
15 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Don't use the skeleton component right now, it is out of date. Please use one of the existing BuddyPress components as an example to start from. You should not be putting theme CSS in your plugin.

Note: See TracTickets for help on using tickets.