• I’m trying to customize the “My Sites” text in the Admin bar (both front and backend) for my multisite install, but can’t seem to find an answer anywhere. If anyone could point me in the right direction it would be greatly appreciated. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Are you by chance talking about the site title? It shows in the top left of the admin menu bar to the right of the wordpress logo?

    If this is what you mean, you can change that by going to Settings -> General.
    There will be the very first form field for Site Title. Can change the name there and save.

    I hope this helps and is what you are meaning by your question. Feel free to respond back if this is not what you are referring to or need more assistance.

    Thanks,
    Chris

    Hey borfus31!

    If you want change the specific text you’re describing, I suggest you check out the Absolutely Glamorous Custom Admin plugin. It will allow you to change every aspect of your admin bar and of course add custom names or text for your site list!

    Regards

    Thread Starter Randy Baum

    (@borfus321)

    Thanks for the quick responses!

    @chris3dmaniac – Unfortunately, no. I was referring to the text “My Sites” that (when hovered) displays a list of all the sites setup within the network. Thanks!

    @abendrot – Do you know how to change the text without using a plugin? Less plugins = less potential for issues down the line.

    Either way, I appreciate the help guys!

    You must mess a bit with wordpress core, so make sure to keep track of any changes you are about to do. Head over to wordpress core folder -> wp_admin -> my-sites.php. Open the file and search for:
    $title = __( 'My Sites' );
    and try changing the string My Sites to your own preference and see if it works. It should, but I can’t test it here right now.

    Thread Starter Randy Baum

    (@borfus321)

    @abendrot I’ll give it a go tomorrow. I appreciate the help!

    Hey, do not change WP core files :).
    Here is how to do it. Upload these two files to the wp-content/languages folder (create the languages folder if it does not exist): https://drive.google.com/open?id=1kkukz-u5mtDngi9IQUPOE7XKP_lLWoHE
    I have set a new string there, but to set your own text you can edit the PO file with the free program called PoEdit. Find the “My Sites” string and change its translation.
    Basically this is a trick that translates your string from English to English and you choose the translation. This will work if your language for your main site is English. If you change it to another one, you need other files.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to customize “My Sites” text in the Admin bar?’ is closed to new replies.