Skip to:
Content
Pages
Categories
Search
Top
Bottom

Update Labels on Nouveau


  • rsmithgs
    Participant

    @rsmithgs

    Hello guys,

    I’m trying to change the labels in a few different areas, specifically the Member’s Directory placeholder text and the Compose a Message label “Send @Username” under Profile>Messages, but I’m finding that there isn’t really an easy way to do this in Nouveau. I’m also having a tough time figuring out where to change the template. I tried this post (making the .POT file). https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/

    But the text isn’t within the language file, it only contains the text from the legacy theme.

    I’ve gotten the membership placeholder text to be changed by writing a custom js file, but trying the same thing for the “Send @Username” label does not always work correctly.
    Here is my current code:

    $(document).ready(function(){
        if($('#dir-members-search')){
        $('#dir-members-search').attr('placeholder','Search members by name, discipline, position, etc....');
        }
        //currently doesn't work. Change Compose Label for Who to send to.
        $("#send_message_form label[for='send-to-input']").text('Send to User by Username (starting with @)');
    });

    I’d much rather not have to change the text after document.ready because it loads and the user can see the original text for a bit before the text changes.
    When the user clicks away from “Compose” and back to it, the text doesn’t always show my replacement text.

Viewing 1 replies (of 1 total)

  • rsmithgs
    Participant

    @rsmithgs

    I found that if I made this file directory in my theme (as per Theme Compatibility Codex) I could resolve the issue with the Compose field:

    /buddypress/common/js-templates/messages/index.php

    So for anyone else looking for messaging template changes. It’s located in:

    plugins/buddypress/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php

    Anyone looking for the search field for members list, it’s located in:

    /plugins/buddypress/bp-templates/bp-nouveau/buddypress/common/search/search-form.php

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