How to make a unique sidebar for buddypress pages in wordpress?

0 like 0 dislike
14 views
How to make a unique sidebar for buddypress pages in wordpress?

The thing is that the pages buddypress for wordpress are pages of type "page". Accordingly, all use the default sidebar that is used on all pages of type "page". But the buddypress pages also have their own identifiers that are not CPT (custom post types), but for them to hang on to, for example the group can guess in bp_is_group(), which gives true or Netra. Coolestone by checking, if true, replace the default sidebar on the right. Just how can this best be done?
Without plug-ins. Because plug-ins or have a very large and unnecessary functionality, which is a dead weight, or simply not allow you to cover all the pages of the BP, and give the opportunity to bring the widgets only on the main BP page.
by | 14 views

1 Answer

0 like 0 dislike
Hello!

You can use conditional tags. The list of conditional tags BP

\rhttps://buddypress.org/support/topic/conditional-t...

bp_is_blog_page() bp_is_register_page() bp_is_activation_page() bp_is_directory() bp_is_single_item() bp_is_profile_component() bp_is_activity_component() bp_is_blogs_component() bp_is_wire_component() bp_is_messages_component() bp_is_friends_component() bp_is_groups_component() bp_is_settings_component() bp_is_messages_inbox() bp_is_messages_sentbox() bp_is_messages_compose_screen() bp_is_notices() bp_is_user_friends() bp_is_friend_requests() bp_is_user_blogs() bp_is_user_recent_posts() bp_is_user_recent_commments() bp_is_create_blog() bp_is_user_groups() bp_is_group_create() bp_is_group_home() bp_is_group_invites() bp_is_group_members() bp_is_group_forum_topic() bp_is_group_forum() bp_is_group_wire() bp_is_group_leave() bp_is_group_admin_page() bp_is_user_profile() bp_is_profile_wire() bp_is_change_avatar() bp_is_profile_edit() bp_is_user_activity() bp_is_user_friends_activity()


As I understand it, the problem is not the creation of the sidebar, but how to download it on the pages of BP
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,806 users