Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] How to change the title of members directory page?

  • @screampuff

    Participant

    Hello, I want to change “Members” to “Employees”. I’ve created the Employees page and configured buddypress settings to use it, however the header title of this page still says “Members”.

    I’ve figured out that I can edit /wp-content/plugins/buddypress/bp-members/bp-members-loader.php

    and edit the line:

    'directory_title' => _x( 'Members', 'component directory title', 'buddypress' ),

    to

    'directory_title' => _x( 'Employees', 'component directory title', 'buddypress' ),

    However I don’t want to edit core files. I tried copying this file to /wp-content/themes/my-theme/buddypress/bp-members/ and making the changes there but they did not apply.

    Is there a way to do this change with a function?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @danbp

    Participant

    This core function has no filter. The easiest way is to use a language translation file.

    https://codex.buddypress.org/developer/customizing/customizing-labels-messages-and-urls/

    In pot file, the concerned string Members is commented by [ component directory title ].

    @screampuff

    Participant

    Thanks, got it working with the language file!

    @danbp

    Participant

    Perhaps you made it wrong ? How did you create the mo file ? What is your site language and theme ?

    @screampuff

    Participant

    Sorry, it is working, edited that post but was a moment late. The issue was I had just updated Buddypress and forgot to create a new language file from the updated .pot

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] How to change the title of members directory page?’ is closed to new replies.
Skip to toolbar