WordPress.org

Ready to get started?Download WordPress

Forums

Frisco for BuddyPress
frisco not working with buddypress 1.7 (5 posts)

  1. climaxx
    Member
    Posted 12 months ago #

    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 ?

  2. hallsy
    Member
    Posted 12 months ago #

    Its working for me on 1.7 and the latest WP.

  3. climaxx
    Member
    Posted 12 months ago #

    i will make another try

    most is working only the sidebar on user profile page

    i will check again

  4. climaxx
    Member
    Posted 12 months ago #

    when the new bbpress plugin is activated then the theme breaks

  5. tsco
    Member
    Posted 11 months ago #

    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 );
    
    ?>

Reply

You must log in to post.

About this Theme

About this Topic