For this specific instance you could use is_front_page()
and then dequeue them, which will remove them from the front page.
if(is_front_page()){
wp_dequeue_script( ... );
wp_dequeue_style( ... );
}
As for other pages, I would suggest having an array of pages to exclude the resources from and use is_page()
to check if it should be excluded. Ideally this array would be set on an options page
$pages_to_exclude = array( 1,2,3... );
foreach($pages_to_exclude as $page){
if(is_page($page)){
wp_dequeue_script( ... );
wp_dequeue_style( ... );
}
}
Or the native PHP function in_array()
global $post;
$pages_to_exclude = array( 1,2,3... );
if(in_array($post->ID,$pages_to_exclude){
wp_dequeue_script( ... );
wp_dequeue_style( ... );
}
As for an inbuilt solution that comes with the plugins, I wouldn’t know as I’m not familiar with them, so there may be a better solution out there. Not sure whether that would be considered within the scope of this site though.
Related Posts:
- How to check if the current page is a “personal activity”-page in buddypress? [closed]
- Conditional based on the User Role of the Current Profile the user is viewing – BuddyPress [closed]
- How do I find the bbpress forum ID for a forum in a buddypress group?
- Can’t Find BBPress data in Database
- BuddyBoss (BuddyPress / bbPress) moderation filters not doing anything
- Using WordPress as an API [closed]
- Empty “Forums” page BuddyPress site wide forums – bbPress [closed]
- BuddyPress/bbpress: There was an error when creating the topic
- Conditional tags to differentiate between profiles and activity with buddypress [closed]
- How to remove ( 0, 0 ) from forum page in bbpress [closed]
- bbpress plug-ins and buddypress [closed]
- Return instead of echo
- How to Modify/Change a Buddypress/WordPress Account Activation Process
- Integrating Buddypress, Wootumblog and WPMU Sitewide tags
- Add BuddyPress Profile Menu Item [closed]
- BuddyPress: Adding a new tab in groups
- how to get current user name by user_id in buddypress?
- What’s the easiest way to change the default landing page for BuddyPress groups?
- Login redirect to certain bp profile page
- How to ensure buddypress custome profile field is unique
- Posting Photos and Other Attachments in a BuddyPress Forum?
- BuddyPress: How to get info of users filtered by some x-profile data? [closed]
- Buddypress get member meta info for specific user ID [closed]
- How to Change BuddyPress Mystery Man Graphic without Overwriting Core Image File [closed]
- Exclude User from Activity Stream in BuddyPress?
- Display four buddypress activies [closed]
- How to remove unused avatar uploads in buddypress [closed]
- Buddypress Fake (non-bot) Users [closed]
- BuddyPress | How to merge the “setting” & “profile” pages into one page? [closed]
- cubepoints/buddypress show new rank on activity? [closed]
- Upload files into buddypress profiles [closed]
- Is it possible to have a network of BuddyPress sites, a-la WordPress MU, with single-sign-on? [closed]
- BuddyPress User Profile Menu
- How to create a theme specific translation of buddypress? [closed]
- Remove post content from buddypress activity [closed]
- Buddypress Registartion template [closed]
- Does BuddyPress Have An Action Hook for remove_user? [closed]
- Can you use the buddypress profile system without installing the whole of buddypress? [closed]
- How to auto-accept a friend-request in buddypress based on user meta
- switch_to_blog( ) content disappears after load
- Buddypress bp_has_members function custom search with meta query [closed]
- Show Specific Buddypress Group Activity Stream in page template
- Buddypress, BBPress – deqeue bp, bbp css and get group member count
- buddypress activity social share
- Wrong path when adding custom tab in BuddyPress [closed]
- Can I develop a social networking Site using WordPress and its Plugins? [closed]
- Buddypress export Profile Fields [closed]
- Buddypress create custom tab on my profile and add on home page [closed]
- New Post Notifications for Users – BUDDYPRESS
- BuddyPress: Conditionally filter directory based on Xprofile Field [closed]
- Will multiple BuddyPress groups slow down a site? [closed]
- Showing content to specific BuddyPress Member Types
- Fire curl command everytime new user is created
- Save buddypress xprofile data to author meta
- Pre-populate BuddyPress Member Profile Data in Gravity Forms [closed]
- How to get the group_id from the “groups_join_group” action in buddypress [closed]
- How to add an error or notification to an activity?
- Buddypress Welcome Email [closed]
- How to get all users that uploaded avatars or have gravatars? [closed]
- Buddypress – adding profile fields to Group > Members directory [closed]
- how to make all buddypress users status “recently active”? [closed]
- WordPress Super Admin menu not enabled
- SQL Query members by profile fields Buddypress [closed]
- WordPress/Buddypress theme has suddenly stopped working [closed]
- BuddyPress user bio in profile [closed]
- How to make the BuddyBar fix and scroll with the page
- BuddyPress redirecting to home page on login [closed]
- Buddypress integration with wordpress
- How to split out BuddyPress notifications drop down items to their own top level? [closed]
- BuddyPress – User Login instead of Full Name [closed]
- Displaying the errors from my BuddyPress script
- BP Profile Search with limited range
- How can I combine WordPress default Tags and bbPress tags into one archive page?
- validation email signup form buddypress
- bp_core_new_subnav_item shows new group tab but returns 404 when the tab runs. Works on another page
- Limit the total space in every user
- how can i add the repeater field in buddy press user edit profile
- Upload buddy press profile picture from custom page template
- How can I display list of notifications of buddypress in a single page or post
- Buddypress: Filter Members Based on If They Have Posts
- send reply message by thread id in buddypress
- Buddypress user registration validation not working with custom select query
- Causing my WordPress functions to execute twice
- New accounts daily at WP Multi-User site under development, Analytics reports no traffic. What gives?
- How to get custom field from BuddyPress Extended Profile
- is it possible to add_action via template.php rather than function.php for this specific buddypress hook?
- Buddypress – Custom Name For Logged In User’s Messages In Message Thread
- disable plugin in specific dynamic buddypress pages
- Deregister script on specific user’s BuddyPress page
- Missing “Registration” page with BuddyPress [closed]
- Some ways to debug code
- How to update avatar in buddypress programmatically? [closed]
- How to: When a bp Group created, automatically create a wp category [closed]
- Is it possible to allow BP Group Admins to Set which Menu Tab they would like to have as their Default landing page? [closed]
- Delete user account – If user has attachments uploaded then redirect (with a message) [closed]
- Set maximum number of letters limit on xprofile fields [closed]
- How can i hide content if not friend in Buddypress? [closed]
- BuddyPress – Message’s Send To auto-fill functionality not working
- Force buddypress groups to be private [closed]
- Remove user from group after X days buddypress