Update Labels on Nouveau
-
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.
- You must be logged in to reply to this topic.