Changing the Default tab name from Media to gallery


#1

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.


#2

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.


#3

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


Custom front-end text change: "a media" and "Sorry !"
#4

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’);


#5

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

What else can I try? Thanks!


#6

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.


#7

I did. Thanks!!!


#8

Hello @carollanos,

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

You are welcome!


#9