Skip to:
Content

BuddyPress.org

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#5244 closed enhancement (no action required)

Need way to load buddypress.css when buddypress templates are included in theme

Reported by: jrfoell's profile 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)

#1 @r-a-y
11 years ago

  • Keywords reporter-feedback added

Since you're running a customized members page, you could enqueue the CSS yourself.

Any reason why you can't do that?

#2 @DJPaul
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Closing ticket as Ray's suggestion is a good one, and we've no more feedback from @jrfoell yet -- are you still out there? :)

#3 @jrfoell
11 years ago

Sorry, I can never figure out how to get trac to *always* send me emails when tickets are updated...

It seems like in BP 1.9 I can just manipulate the bp_use_theme_compat_with_current_theme filter. Issue closed.

Note: See TracTickets for help on using tickets.