I've noticed that depending on where it appears, the alt tag for Buddypress avatars is either "Avatar Image" or "Member avatar". I would love to change this! But I can't find it?! I've done a site-wide search of the code in Dreamweaver, but it can't seem to find where this happens.
I've noticed that depending on where it appears, the alt tag for Buddypress avatars is either "Avatar Image" or "Member avatar". I would love to change this! But I can't find it?! I've done a site-wide search of the code in Dreamweaver, but it can't seem to find where this happens.
Ah ha! However, I'm more interested in putting a variable in there, like the user's name. Are there multiple instances then of the avatar? Or is there one main one that is drawn on?
Also, on a slightly different topic, browsing the buddypress.pot file I see a listing for
#: bp-blogs/bp-blogs-templatetags.php:198
msgid "Blog avatar"
Is there a blog avatar built into buddypress?? Like for use with multisite? If so that would be awesome! But then where is it because I haven't seen it.
And if not, what does this refer to then?
Ok, I see it in bp-core/bp-core-avatars.php, but yikes - isn't it "bad" to touch the core?? Seems odd that this would be defined this way..."avatar image" isn't a very SEO-friendly alt tag :(
Well, yes, it's advisable that you don't touch core. Instead, you should look to see if there's a hook you can use to override that portion of code. I must admit I'm not hot on BuddyPress so I'm not sure where you'd find this.
Responses (7)
Sales & Support Pro — 4th August 2011 #
Hiya Jenny,
The text is within the buddypress.pot file in the bp-languages folder of the plugin.
You'll just need to provide a simple translation to change it :)
Phil
Member — 4th August 2011 #
Ah ha! However, I'm more interested in putting a variable in there, like the user's name. Are there multiple instances then of the avatar? Or is there one main one that is drawn on?
Also, on a slightly different topic, browsing the buddypress.pot file I see a listing for
#: bp-blogs/bp-blogs-templatetags.php:198
msgid "Blog avatar"
Is there a blog avatar built into buddypress?? Like for use with multisite? If so that would be awesome! But then where is it because I haven't seen it.
And if not, what does this refer to then?
Thanks a mil!
-jennyb
Member — 4th August 2011 #
Ok, I see it in bp-core/bp-core-avatars.php, but yikes - isn't it "bad" to touch the core?? Seems odd that this would be defined this way..."avatar image" isn't a very SEO-friendly alt tag :(
Sales & Support Pro — 4th August 2011 #
Well, yes, it's advisable that you don't touch core. Instead, you should look to see if there's a hook you can use to override that portion of code. I must admit I'm not hot on BuddyPress so I'm not sure where you'd find this.
Phil
Member — 4th August 2011 #
ok, off to hunt for a hook!
thanks Phil :)
-jennyb
Member — 4th August 2011 #
found this, may have to wait for the v1.3
http://buddypress.org/community/groups/creating-extending/forum/topic/avatar-img-alt-tags/?#post-105606
Member — 4th August 2011 #
i mean v1.5 :) hihi
Become a member