• on my install it seems frisco is not working for buddypress 1.7

    on the homepage it is OK

    but i have the righ sidebar which is not working for many buddypress page :
    user profiles for example

    others in the same situation ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Its working for me on 1.7 and the latest WP.

    Thread Starter climaxx

    (@climaxx)

    i will make another try

    most is working only the sidebar on user profile page

    i will check again

    Thread Starter climaxx

    (@climaxx)

    when the new bbpress plugin is activated then the theme breaks

    Here’s a temporary solution I just figured out:

    Create a functions-custom.php in your Frisco folder and add the following code:

    <?php
    
    /**
     * Remove bp-user class from body_class()
     *
     * @param  array $wp_classes
     * @return array
     */
    
    function frisco_remove_body_classes( $wp_classes ) {
    
    	if( in_array("bp-user", $wp_classes) ) {
    	    // The classes you wish to remove
    	    $blacklist = array( 'single' );
    
    	    // Remove classes from array
    	    $wp_classes = array_diff( $wp_classes, $blacklist );
    
    	    // Return modified body class array
    	    return $wp_classes;
    	}
    	else {
    		return $wp_classes;
    	}
    }
    add_filter( 'body_class', 'frisco_remove_body_classes', 10, 2 );
    
    ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘frisco not working with buddypress 1.7’ is closed to new replies.