Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change site name in admin bar

  • Avatar of coaster101
    coaster101
    Member

    @coaster101

    I am trying to modify the site name of my admin bar. Currently it says “website” but I want it to say “website connect”. What would be the easiest way to do this?

Viewing 9 replies - 1 through 9 (of 9 total)
Avatar of coaster101
coaster101
Member

@coaster101

I uploaded that file to the wp-content/plugins folder and received this error:

Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home2/websitro/public_html/wp-content/plugins/bp-custom.php on line 7

Avatar of @mercime
@mercime
Keymaster

@mercime

replace that line with

Avatar of coaster101
coaster101
Member

@coaster101

Now it just adds a link to the right of the site title, it looks the same as “My Account”, “Dashboard”, etc. It has an arrow besides it as well.

So it looks like this: “Website” “Website Connect v” “My Account v” “Dashboard v” “Notifications v”

Avatar of @mercime
@mercime
Keymaster

@mercime

Yeah, I was in midst of correcting that hopefully before you saw it. Haste made waste.

`function my_adminbar_name () {
global $bp;
echo ‘root_domain . ‘” id=”admin-bar-logo”>Welcome Connect‘;
}
remove_action(‘bp_adminbar_logo’,’bp_adminbar_logo’);
add_action(‘bp_adminbar_logo’,’my_adminbar_name’);`

EDIT – Works when you put this in your active theme’s functions.php file (instead of the bp-custom.php file in plugins directory as mentioned above. Thanks to @DJPaul in this post).

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

You must be logged in to reply to this topic.