Please use the <code>
button when you insert code on the forum.
On which page exactly do you see this code ?
If on your profile, thought it should be notifications-my-notifications-personal-li
Do you use a child theme ?
What is your theme ?
Do you use a notification related plugin ?
yes, i am using child theme`
I am using a the republic-child theme.
I am not sure any plugin related notification
Thank you for clarification. The screenshot you linked to shows the Followers item with an ID of
members-following-personal-li
This belongs to a follower plugin or to a built-in addon of your theme.
As explained, on profile pages it will end with “-personal-li” and on group pages it will end with “-groups-li”. The notification component add “notification”, so you have notifications-personal-li
.
The question now is: do you want to change the CSS rule or something in the html (ie. change li to div) ?
If it is the css rule, you do that in your child theme file style.css
#notifications-personal-li {
// do something
}
If it is the html, you have to work on the notification template, also from within the child.
And if it is a core functionnality – like moving or renaming the item: it’s explained on Codex:
Template overload
Navigation API
Hi,
well… it sound complicated to me as i am still quite confuse.
Anyway, i need to identify because i wish to change notification word in buddypress menu bar to chinese by hard coding or whatever.
Can you advise what to enter into the css or where to change it.
Navigation API
Can you explain more on it the link above.
Your link is 7 years old ! That’s a prehistoric reference 🙂 and outdated!
If you’re talking about the Notification(x) item on BuddyMenu, it is in the language file where you can change it or use the trick indicated on Nav Api codex page (mentionned in the above post).
Example:
function bpcodex_change_unread_nav_name() {
buddypress()->members->nav->edit_nav( array(
'name' => 'The new name in whatever language',
), 'notifications' );
}
add_action( 'bp_setup_nav', 'bpcodex_change_unread_nav_name', 100 );
Add the snippet to bp-custom.php
Customize profile and group menus in BuddyPress
I saw this above tried to rename the menu items but it does not work
Can you help?
pre type=”php”
$bp->bp_nav[‘activity’][‘name’] = ‘wall’;
/pre
Have you tried to use my snippet example ?
The code in the Themekraft tutorial is outdated. Current reference is the Nav API.
Hi there,
Can you you tell me where is bp-custom.php file located?