bp_search_body_class( $wp_classes )
Add ‘buddypress’ and ‘directory’ in Body tag classes list
Description
Parameters
- $wp_classes
-
(Required)
Return
(mixed|void)
Source
File: bp-search/bp-search-functions.php
function bp_search_body_class( $wp_classes ) { if ( bp_search_is_search() ) { //if search page. $wp_classes[] = 'buddypress'; $wp_classes[] = 'directory'; } $wp_classes[] = 'bp-search'; return apply_filters( 'bp_search_body_class', $wp_classes ); }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.