Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › How to rename the menu tabs on profile page?
Tagged: profile menu
- This topic has 12 replies, 3 voices, and was last updated 9 years ago by sandy.
Viewing 13 posts - 1 through 13 (of 13 total)
-
AuthorPosts
-
November 4, 2015 at 1:59 pm #7008esteebSpectatorHi, 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!November 5, 2015 at 8:29 am #7133Anshuman SahuKeymasterThese 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/November 5, 2015 at 1:11 pm #7195esteebSpectatorHi 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! ThanksNovember 7, 2015 at 7:06 am #7499Anshuman SahuKeymasterCheck 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 .November 7, 2015 at 2:49 pm #7583esteebSpectatorThe 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? ThanksNovember 9, 2015 at 8:37 am #7710Anshuman SahuKeymasterPlease share the site url to debug this .November 9, 2015 at 12:36 pm #7791esteebSpectatorHi Alex, the url is: www.csar.nyc My login is: estee babbab65 Thx!November 10, 2015 at 11:03 am #7983Anshuman SahuKeymasterWe 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/914n3gNovember 10, 2015 at 12:48 pm #8060esteebSpectatorHi 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!November 11, 2015 at 8:52 am #8160sandyMemberOk, 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/91h6kqNovember 11, 2015 at 1:31 pm #8200esteebSpectatorHi Alex, yes, this was from the ablove article, if you scroll a little farther down, you'll see this :
I just amended the functions.php file. I hope this helps.// 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’; } /* *** */
November 12, 2015 at 8:12 am #8247sandyMemberI 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'; }
November 12, 2015 at 8:17 am #8250sandyMemberp.s : Please do not copy paste the above code directly, check the last few lines which I have added as a fix. -
AuthorPosts
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.