BuddyDev

Search

Changing Buddypress Profile Menu and Submenus Mediapress

  • Participant
    Level: Initiated
    Posts: 3
    Lawrence Norris on #53017

    I have the same Q as this poster, https://buddydev.com/support/forums/topic/change-menu-gallery/
    but I do not understand what to do with the response.

    I would like to change Gallery in the profile menu to Library, My Gallery to My Library, Create a Gallery to Create a Collection. I want to concomitantly change all the slugs.

    I would also like to change the default cover icons.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #53038

    Hello Lawrence,

    Sorry for the delayed reply. Right now, you can only modify the slug of the main tab; the slug of sub-tabs cannot be modified with the current version of the plugin. However, you can update the labels using any localization plugin.

    If you need help with the code for changing the slug, I can share it with you.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 3
    Lawrence Norris on #53068

    Yes please share with me code to change the slug and (if it’s not the same think) change the menu item from Gallery to Library.

    Thanks

    LSN

  • Participant
    Level: Initiated
    Posts: 3
    Lawrence Norris on #53069

    When can/will you be updating the version of the plugin? Will the next version allow for changing slugs of the sub-tabs?

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #53081

    Hello

    Thank you for the acknowledgement.

    1. To change the slug of main tab i.e. ‘Gallery’

    
    
    add_action( 'mpp_setup', function () {
    
    	if ( ! defined( 'MPP_GALLERY_SLUG' ) ) {
    		define( 'MPP_GALLERY_SLUG', 'library' );
    	}
    
    }, 5 );
    
    

    Put this code in ‘bp-custom.php’ file in case you do not know what is this file. Please refer the following resource:

    https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    2. For changing the slug of sub-tabs. We have a raised a ticket on BuddyPress trac. Once resolved we will add compatibility to BP 12 so that user can modify all tabs slug added by MediaPress. You can check it here

    https://buddypress.trac.wordpress.org/ticket/9128

    3. For updating the label please let me know which localization plugin you are using so that I can guide you.

    Or you can prefer the following plugin which allows modifying or adding new tabs.

    https://buddydev.com/plugins/buddypress-user-profile-tabs-creator-pro/

    4. For default cover icons do you want gallery type based cover or anything you are looking for?

    Regards
    Ravi

    • This reply was modified 1 month, 2 weeks ago by Ravi.

You must be logged in to reply to this topic.

This topic is: not resolved