- Steffen Metzka on April 2, 2021 at 8:55 am #37432
Ok i see. I can give this to the buddyboss team.
Do you have any suggestions how such a simple filter has/could to look like?
Therefore the development could be speed up in the buddyboss team.
- Brajesh Singh on April 3, 2021 at 11:11 pm #37454
Please allow me to post on Monday with my suggestions.
- Brajesh Singh on April 5, 2021 at 8:58 am #37464
Thank you for the patience.
here is an example.
The should change this(from all the places they have used similar code)
<?php if ( ! bp_is_user_messages() && ! bp_is_user_settings() && ! bp_is_user_notifications()&& ! bp_is_user_profile_edit() && ! bp_is_user_change_avatar() && ! bp_is_user_change_cover_image() ) : ?>
$show_profile_header = ! bp_is_user_messages() && ! bp_is_user_settings() && ! bp_is_user_notifications() && ! bp_is_user_profile_edit() && ! bp_is_user_change_avatar() && ! bp_is_user_change_cover_image() ; if ( apply_filters('buddyboss_theme_show_user_profile_header', $show_profile_header ) ) : ?>
Even better, they can put part of this code in a function like buddyboss_theme_is_user_profile_header_visible()`
and use that at all the places they want to toggle the header.
Now, we can control the header visibility via custom code easily.
- Steffen Metzka on April 5, 2021 at 10:09 am #37468
thanks for your answer. i have posted your code to the buddyboss support. don´t know if they will fix this.
we don´t have a possibility to fix this with a custom function in the functions.php?
- Brajesh Singh on April 6, 2021 at 10:30 pm #37495
I am sorry for the issue.
The only other solution is to override at least 3 files(member-header.php, cover-image-header.php and profile.php ). All these 3 files have same code for hiding/showing the header.
You must be logged in to reply to this topic.