Changing "Media" Navigation title


#1

When in a Buddypress profile, this plugin adds the navigation menu name "Media". I was hoping I could change that to "Artwork". How can this be done?


#2

Any ideas?


#3

Hi,

In your wp-config.php, you can add: define('BP_MEDIA_SLUG', 'artwork');

Regards.


#4

I added the code you mentioned, and it changed the URL of that page to "artwork", but I am looking for the text in the navigation bar to change from "Media" to "Artwork"

Is that possible?


#5

It should be:

define('BP_MEDIA_LABEL', 'artwork');  

#6

@ecomqueen Thanks. We had been a little busy with the development to sort this earlier!


#7

@saurabhshukla

I tried adding define('BP_MEDIA_SLUG', 'artwork'); to bp-custom.php which I thought would change the 'media' slug to 'artwork'.

This doesn't seem to work. Any ideas how to change the 'media' slug in the URL?


#8

My apologies, I should have added to wp-config.php and not bp-custom.php

It works perfectly.


#9

Hi all,

I tried this, and it doesn't work for me, however, when I hardcode it, it works. Any suggestions please???


#10

@ecomqueen

It doesn't work in bp-custom.php but it does work for me in wp-config.php

Try that to see if it works for you


#11

I did try it in wp-config.php It still didn't change.


#12

Try

define('BP_MEDIA_SLUG', 'multimedia'); define('BP_MEDIA_VIDEOS_SLUG', 'visual'); define('BP_MEDIA_IMAGES_SLUG', 'images'); define('BP_MEDIA_AUDIO_SLUG', 'sounds'); define('BP_MEDIA_ALBUMS_SLUG', 'albums');


#13

@henrywright

The code you provided didn't work either :( I guess I'll just have to hard code it :'(


#14

@ecomqueen These are just constants and the way they are programmed, the code that @henrywright provides will work. If it isn't, could you check if something is caching your site?


#15

@saurabhshukla how do I do the cleaning of the cache? I have cleaned my web browser cache and still it doesn't show. And now, when I hardcode it, the entire Media tab disappears!! So frustrating!


#16

Hi,

It's kind of impossible for that to not work. No idea why the solution provided by Henry doesn't work. That's exactly where we pick up strings from. Clearing the cache on the server depends on how it is setup. You'd have to speak to the hosting provider/manager for that.

Regards.


#17

#18