Replies
Hi Brajesh, what you are suggesting makes good sense, thank you.
Regards
CarstenHmm, ran into an issue, the dropdown is gone, but there must be a syntax error some were, or I positioned the remove action wrong, because it breaks the messages module?
<div class="messages-options-nav"> <?php // remove the action remove_action( 'bp_messages_bulk_management_dropdown', 'action_bp_messages_bulk_management_dropdown', 10, 0 ); ?> </div><!-- .messages-options-nav --> <?php wp_nonce_field( 'messages_bulk_nonce', 'messages_bulk_nonce' ); ?> </form> <?php
- This reply was modified 5 years, 2 months ago by
calu.
- This reply was modified 5 years, 2 months ago by
Hi Brajesh, thank you very much for the clarification and help on the subject, it’s working great.
I want to overwrite other objects in the templates eg. the thread star, what is the easiest way to look up the corresponding template to an object, are these listed somewhere, or do I just have to look them up?
Regards
CarstenHi Brajesh, no issues, I was not sure which file I should overwrite.
Just to clarify, then you never or can not?, overwrite
buddypress, bp-messages, eg. bp-messages-star.php,
but always via template, bp-templates eg. bp-legacy, buddypress, members, single, messages.php – or single, messages, message.php or messages-loop.php?
When you overwrite a file to your child theme, like messages.php, it does not get overwritten, but that means also, that it does not get updated neither?
Regards
CarstenHi Brajesh, sorry for not being clear enough, my goal is to remove certain elements like the message select drop down and message star options. I can hide it with css, but would prefer to remove it instead.
Hi there, it’s working perfectly now, I can see that it is working out of the box, without adding the function to a hook element, that’s really a useful addition you have made!
Which class can I use for CSS?
Thanks again
Regards
CarstenHi Brajesh, I can see you added an action
bp_get_the_profile_group_id()
for adding group id’s.The way I have added an action hook, so far, is to add a hook in a theme element.
What does this markup do, does it create new hooks to target different groups by its id’s?
Just to clarify, can I add
bp_get_the_profile_group_id()
to my hook element with an id, like this for group id 1bp_get_the_profile_group_id(1)
?Regards
Carsten- This reply has been marked as private.
Hi Brajesh, thanks
I’m using Legacy
Regards
CarstenHi Brajesh, yes, that is my goal, but of course it shall be the corresponding edit button for that group.
ok, so after copying the profile-loop.php, how should I override it?
What will that mean for the site functionality in general, overwriting this?
Thanks
Carsten