-
Author
-
March 25, 2018 at 19:15 #192988
ThrewTheNevR
ParticipantHello there,
So I’m having an issue removing the messages from the profiles nav bar.
The strangest issue tho because I was able to hide the notifications tab with following code.
a#user-notifications {display : none !important}
That worked as expected but when I try to apply same method for the messages tab it don’t seem to work.
Following css used:
a#user-messages {display : none !important}
Doesn’t seem to work.
I then proceeded to try doing it using a function instead with the following code below.
function bp_remove_item_from_profile()
{
bp_core_remove_nav_item(‘messages’);
}
add_action(‘bp_activity_setup_nav’,’bp_remove_item_from_profile’);
Didn’t seem to work. Was there another way to go about this?
March 25, 2018 at 19:20 #192990Kieran_SQ
ModeratorHi,
I just checked locally and that is the correct CSS
a#user-messages {display : none !important}Please try purging your CDN, server cache, website cache and front-end cache (Ctrl+F5) to see if this resolves the issue.
Also please check the CSS that is above and below opens and closes correctly with the curly brackets { }
If you have done both of these tests and the issue persists then please update this ticket, in a private reply, with admin credentials so I can check it out.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 25, 2018 at 19:50 #192997ThrewTheNevR
ParticipantI have tried all of the above recommendations but problem still persists.
I don’t have a cache plugin of any sort, I have cleared browser cache and also double checked if the issue was there using another browser.
I have changed the code and added ;
a#user-messages {
display : none !important;
}Still don’t work.
Username: John
Pass: Xu84wormsxMarch 25, 2018 at 19:55 #192998Kieran_SQ
ModeratorHi,
You have a plugin installed called BP Better Messages that has changed the class for the profile nav item. I have added the below to your Theme Options > General Settings > Quick CSS and the changes are reflected on the front-end. Please clear you local cache to see the changes.
COPY CODEli#bp_better_messages_tab-personal-li { display: none !important; }Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 25, 2018 at 19:57 #193000Kieran_SQ
ModeratorYou’re welcome, feel free to open a new ticket any time with any other questions 🙂
All the best,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.