#5244 closed enhancement (no action required)
Need way to load buddypress.css when buddypress templates are included in theme
Reported by: | jrfoell | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 1.8.1 |
Component: | Core | Keywords: | reporter-feedback |
Cc: |
Description
From bp-core/bp-core-theme-compatibility.php::start()
// Bruteforce check for a BP template // Examples are clones of bp-default if ( locate_template( 'members/members-loop.php', false, false ) ) { return; } } // Setup methods $this->setup_globals(); $this->setup_actions();
I'm looking for a way to short-circuit the "if ( locate_template() )". I have a theme with a customized members page, but it is similar enough to the bp-default that I still want to use the buddypress.css file to style those pieces. When the template is found, setup_globals() isn't run and the style isn't loaded. Maybe a filter could be added to allow me to purposefully short-circuit that check?
Change History (3)
Note: See
TracTickets for help on using
tickets.
Since you're running a customized members page, you could enqueue the CSS yourself.
Any reason why you can't do that?