Changing slug name of "Gallery"

  • Participant
    Kyle Halter on #27034


    I think there was a topic on this already, but it wasn’t very clear how it was done.

    What do I need to do to my functions.php file in order to change the slug name of Gallery from the MediaPress plugin to a custom name, such as “Upload Files” or “Upload Inspiration.”


  • Keymaster
    (BuddyDev Team)
    Posts: 22546
    Brajesh Singh on #27035

    Hi Kyle,
    Welcome to BuddyDev forums.

    If you want to change the tab label, you will need to translate it.

    There are multiple ways to translate.

    A simple way to translate will be to use poedit.

    Please open “mediapress/languages/mediapress-en_US.po” in poedit.
    search for “Gallery %d
    and change that with your desired label.

    After that, Please save the file. A new “mo” file will be generated with the name “mediapress-en_US.mo”.

    Please move this file to your wp-content/languages/plugins directory. It will change te label(I have assumed your locale to be en_US, If it is different, Please change the last part to that specific locale).

    Another way to translate will be to use any of the translation plugins for WordPress and translate that string. That will work too.

    Hope that helps.


You must be logged in to reply to this topic.

This topic is: not resolved