How to rename the menu tabs on profile page?

Home Forums Legacy Support Support queries How-to & Troubleshooting How to rename the menu tabs on profile page?

Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #7008
    esteeb
    Spectator
    Hi, I was wondering if it's possible to rename the menu on the student profile page? The one on the top. See attached screenshot. Thanks!
    #7133
    Anshuman Sahu
    Keymaster
    These texts are present in the vibe course module plugin . Please edit the vibe course module plugin files to translate these  . Refer   :   https://wplms.io/support/knowledge-base/translate-using-codestyling-localization-plugin/
    #7195
    esteeb
    Spectator
    Hi Alex, So I followed the instructions but I'm not seeing any changes. I edit the translation, saved and then click generate mo file. It's still the same. Please advise! Thanks
    #7499
    Anshuman Sahu
    Keymaster
    Check the vibe_en_Us.po and vibe_en_Us.mo file in the wp-content/languages/plugins folder . This is the path from where the translation files are detected to be applied in wplms .
    #7583
    esteeb
    Spectator
    The languages file is currently on wp-content/themes/wplms/languages And I'm editing the Vibe Course Module using the localization plugin. What exactly should I be editing? Settings>>Localization - click on plugins, locate Vibe Course Module, Click to edit > make translations > save and click on generate mo file Correct? Thanks
    #7710
    Anshuman Sahu
    Keymaster
    Please share the site url to debug this .
    #7791
    esteeb
    Spectator
    Hi Alex, the url is: www.csar.nyc My login is: estee babbab65 Thx!
    #7983
    Anshuman Sahu
    Keymaster
    We checked your site and were unable to detect the issue and even translate the string . But we found that there were some strings that were translated . Can you please share info about how you have changed the text in the given screenshot : http://prntscr.com/914n3g
    #8060
    esteeb
    Spectator
    Hi Alex, yes, I got the info from your forum: https://wplms.io/support/knowledge-base/translating-buddypress-strings-activity-notification-messages-friends/ If you know of how to change the top profile menu, please let me know. Thx!
    #8160
    sandy
    Member
    Ok, the above tutorial is for translating buddypress, but can you tell how you translated these strings ? These strings are from Vibe Course module and even though these are not translated in the plugin translation files, these appear translated in your site, which is very strange. http://prntscr.com/91h6kq
    #8200
    esteeb
    Spectator
    Hi Alex, yes, this was from the ablove article, if you scroll a little farther down, you'll see this :
    // Setup the navigation
    // Props to http://wordpress.stackexchange.com/questions/16223/add-buddypress-profile-menu-item for helping me figure this out
    // http://themekraft.com/customize-profile-and-group-menus-in-buddypress/
    add_action( ‘bp_setup_nav’, ‘ktv_setup_nav’, 1000 );
    function ktv_setup_nav() {
    global $bp;
    
    // Remove a menu item
    //$bp->bp_nav[‘activity’] = false;
    
    // Change name of menu items
    $bp->bp_nav[‘profile’][‘name’] = ‘Mi profile menu name’;
    $bp->bp_nav[‘settings’][‘name’] = ‘My Configuration name’;
    $bp->bp_nav[‘course’][‘name’] = ‘My courses name’;
    
    // Change name of submenu items
    $bp->bp_options_nav[‘profile’][‘public’][‘name’] = ‘My show name’;
    $bp->bp_options_nav[‘profile’][‘change-avatar’][‘name’] = ‘My change profile photo name’;
    $bp->bp_options_nav[‘profile’][‘edit’][‘name’] = ‘My edit name’;
    //$bp->bp_options_nav[‘settings’][‘profile’][‘name’] = ‘My visibility name’;
    
    }
    /* *** */
    I just amended the functions.php file. I hope this helps.
    #8247
    sandy
    Member
    I am not sure why translations are not working in your site. But you can extend the above function for Courses as well. Change above function to this for courses :
    add_action( 'bp_setup_nav’, 'ktv_setup_nav’, 1000 );
    function ktv_setup_nav() {
    global $bp;
    
    // Remove a menu item
    //$bp->bp_nav['activity’] = false;
    
    // Change name of menu items
    $bp->bp_nav['profile’]['name’] = 'Mi profile menu name';
    $bp->bp_nav['settings’]['name’] = 'My Configuration name';
    $bp->bp_nav['course’]['name’] = 'My courses name';
    
    $bp->bp_options_nav['profile’]['public’]['name’] = 'My show name';
    $bp->bp_options_nav['profile’]['change-avatar’]['name’] = 'My change profile photo name';
    $bp->bp_options_nav['profile']['edit’]['name’] = 'My edit name';
    
    $bp->bp_options_nav['course']['course’]['name’] = 'My Courses';
    $bp->bp_options_nav['course']['results’]['name’] = 'My Results';
    $bp->bp_options_nav['course']['stats’]['name’] = 'My Stats';
    
    }
     
    #8250
    sandy
    Member
    p.s : Please do not copy paste the above code directly, check the last few lines which I have added as a fix.
Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘How to rename the menu tabs on profile page?’ is closed to new replies.