Re: Issue with default groups widget
Don’t trial and error functions!
Look in bp-core-templatetags.php to find conditionals.
It takes less than five minutes to do this.
bp_is_my_profile()
bp_is_directory()
bp_is_profile_component()
bp_is_activity_component()
bp_is_blogs_component()
etc.
It’s all there.
[EDIT]
Just updated the conditional template tags page in the codex:
https://codex.buddypress.org/developer-docs/conditional-template-tags/