Converting theme, how to load BuddyPress stuff on BuddyPress pages only?
-
Hi All,
I am converting a WordPress theme to use BuddyPress 1.2.x features.
I want to cut down on the page load time for normal WordPress blog posts & pages by only including the BuddyPress Ajax, JS & CSS while viewing those pages
Currently I am using
if ( bp_is_page( BP_ACTIVITY_SLUG ) || bp_is_page( BP_MEMBERS_SLUG )
|| bp_is_member() || bp_is_page( BP_GROUPS_SLUG ) || bp_is_group()
|| bp_is_page( BP_FORUMS_SLUG ) || bp_is_page( BP_BLOGS_SLUG ) ) {
load required ajax, css & js here
}is there any better way for checking if we are currently viewing a BuddyPress page or am I missing out on any BuddyPress pages with this?
Viewing 24 replies - 1 through 24 (of 24 total)
Viewing 24 replies - 1 through 24 (of 24 total)
- The topic ‘Converting theme, how to load BuddyPress stuff on BuddyPress pages only?’ is closed to new replies.