Skip to:
Content
Pages
Categories
Search
Top
Bottom

identify code


  • idichoo
    Participant

    @idichoo

    <li id="notifications-personal-li">

    Hi,

    Can anyone find this code in the buddypress files?

    I need to change something on the code but cannot find the file

Viewing 12 replies - 1 through 12 (of 12 total)

  • danbp
    Participant

    @danbp

    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 ?


    idichoo
    Participant

    @idichoo

    yes, i am using child theme`
    I am using a the republic-child theme.

    I am not sure any plugin related notification


    idichoo
    Participant

    @idichoo


    danbp
    Participant

    @danbp

    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


    idichoo
    Participant

    @idichoo

    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.


    idichoo
    Participant

    @idichoo


    idichoo
    Participant

    @idichoo

    Navigation API

    Can you explain more on it the link above.


    danbp
    Participant

    @danbp

    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


    idichoo
    Participant

    @idichoo

    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


    danbp
    Participant

    @danbp

    Have you tried to use my snippet example ?
    The code in the Themekraft tutorial is outdated. Current reference is the Nav API.


    idichoo
    Participant

    @idichoo

    Hi there,

    Can you you tell me where is bp-custom.php file located?


    danbp
    Participant

    @danbp

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Skip to toolbar