Changing the Default tab name from Media to gallery

Is there a way to change the default tab link? I tried to find a slug but was unable too. I really just what to change the name of the link.

1 Like

Hi,

Even currently, you can change the default slug by adding this line to wp-config.php

define(‘BP_MEDIA_SLUG’,‘artwork’);

Replace artwork with whatever slug you like.

However, this is going to change with rtMedia. There are going to be other ways. Do confirm if things work after the update.

Regards.

Thanks for your reply. I added the line to my wp-config file, but it didn’t work.

Okay, I figured it out. You gave me the slug, but I wanted the label. I found it and added it to wp-config and it worked. This is what I ended up doing.

if (!defined(‘BP_MEDIA_LABEL’))
define(‘BP_MEDIA_LABEL’,‘Gallery’);

if (!defined(‘BP_MEDIA_IMAGES_LABEL’))
define(‘BP_MEDIA_IMAGES_LABEL’,‘Images’);

Hi, I have the latest version of everything but neither of these two options worked for me.

What else can I try? Thanks!

Hi @carollanos,

BP_MEDIA was for older version of rtMedia (BuddyPress Media). Just replace BP_MEDIA with RTMEDIA and it will work fine. Check this doc: http://docs.rtcamp.com/rtmedia/developer/rtmedia-defined-constants/ for more defined constants.

I did. Thanks!!!

Hello @carollanos,

We are glad to know that your issue has been solved.

You are welcome!