Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Missing argument 2 for bp_get_the_body_class


r-a-y
Keymaster

@r-a-y

Just encountered this issue, this is most likely because everyone in this thread is using the deprecated /bp-themes/ format.

I tried German’s fix but that duplicated some CSS classes.

Since I was already using some form of filter to add CSS classes to the body, I removed the bp_get_the_body_class() filter.

If you want to do the same, put this somewhere in your theme’s functions.php:

remove_filter( 'body_class', 'bp_get_the_body_class', 10, 2 );

Skip to toolbar