BP body classes bp_get_the_body_class
Aide Memoir or food for thought
BP adds various classes to the $wp_classes array to add to the body class.
One of those added via the bp_get_the_body_class() function is ‘groups’ this I had proposed using to hook rules to the croups directory however the class ‘groups’ is also generated when in a profile/account page looking at the user_groups screen but also we have a user_groups class added to boot.
It seems unnecessary to have two classes for roughly the same thing? and proves awkward as I have to now be more specific than I perhaps needed to by using ‘directory’
Proposal would be to perhaps remove ‘groups’ class from generating on a profile/account user_groups screen and keeping it simply for the directory view?
- The topic ‘BP body classes bp_get_the_body_class’ is closed to new replies.