BuddyBoss Home – Web › Support Forums › Themes › OneSocial theme › Change name of 'Friends' to 'Vendors'
Tagged: friends
- This topic has 17 replies, 4 contibutors, and was last updated 8 years, 5 months ago by Anonymous.
Question
March 12, 2016 at 6:18 pm #62732@costyclanI want to change the title of ‘Friends’, ‘my friends’, ‘add friend’ etc to ‘Vendors’.
How can I do this pleaseAnswers
March 14, 2016 at 2:17 am #62872@anveHi @costyclan,
Please attach a screenshot of the pages from where you want to replace the text with ‘vendors’.
Regards
AnveMarch 14, 2016 at 6:18 pm #63012@costyclanIn every place where buddypress states friend/friends. I believe it has to be changed via language file?
One example is in the members directory I would like to change ‘Add Friend’ to ‘Add Contact’.
My members directory is used as a ‘Vendor Directory’ for brides to find wedding vendors, so I want to call them contacts so that she can make a separate list of the vendors she’s using to plan her wedding. Hope this makes sense.
3 screenshots attached with examples highlighted in red box.March 15, 2016 at 1:25 am #63051@
AnonymousHi @costyclan, You can easily translate it through Loco Translate plugin
just install the plugin
https://wordpress.org/plugins/loco-translate/Go to plugin option
Select the Plugin and theme to change the string..For help:
https://localise.biz/help/wordpress/translate-plugin/beginnersRegards
March 15, 2016 at 4:38 am #63087@costyclanthank you @pallavi, installing and attempting to use plugin now. Getting the following error:
//
Other potential issues with OneSocialTheme does not declare a “Text Domain” .. Loco has guessed “onesocial”
Theme has a strange POT file name (xx_XX.pot). A better name would be “onesocial.pot”
//
Should I change the .pot file name to onesocial.pot ??
Also, I use a child theme but do I run this plugin on main theme?
What happens after theme updates?Thanks Pallavi this really helps me out
March 15, 2016 at 5:05 am #63091@costyclanSo I’ve created the .po and .mo files just not sure where to put them? Child theme, Onesocial theme or wp-content/languages ??
Amy I way off?March 18, 2016 at 1:34 pm #63894@
AnonymousHi @costyclan
Ideally xx_XX.pot should be saved as onesocial.potit should be like this where xx_XX is your language
wp-content/languages/themes/onesocial-xx_XX.po
wp-content/languages/themes/onesocial-xx_XX.moRegards
Varun DubeyMarch 30, 2016 at 7:40 pm #66158@costyclan@vapvarun
the translation has worked for some areas but not others. See attached screenshots.
Can you tell me how I can change the other items highlighted?March 30, 2016 at 7:42 pm #66162@costyclanI may have answered my own question… I need to do translation for each relevant plugin including Buddypress, not just the theme, correct?
March 30, 2016 at 11:11 pm #66173@costyclanYep, got it all working. Another question though…
How do I change the URL to /contacts (as per attached screenshot)March 30, 2016 at 11:56 pm #66177@
AnonymousHi @costyclan, To change the slug, you can use from within
bp-custom.php
define ( ‘BP_FRIENDS_SLUG’, ‘whatever’ );
whatever should be exclusively alpha numeric, lower case, without any special character or ponctuation.
Regards
April 21, 2016 at 10:30 pm #69242@costyclan@anonymous where do I find this file? Do I copy it and move to child theme?
April 21, 2016 at 10:32 pm #69243@costyclanDisregard my last. I think this article answers my above question. I have to create the file if it’s not there right?
April 21, 2016 at 10:49 pm #69244@costyclanI’ve tried to change the URL using the code suggested in bp-custom.php file
This is the code that I have in file:
define ( ‘BP_FRIENDS_SLUG’, ‘contacts’ );
and you can see in screenshot attached that the url has not been changed??April 21, 2016 at 11:36 pm #69259@
AnonymousHi @costyclan
You can simply use language files and edit all the terms.
You will need to take care of language files of plugins and theme both.
Marketplace plugin
BuddyPress plugin
WC Vendor Plugin
WC Vendor Pro pluginOneSocial theme
Regards
Varun Dubey
- The question ‘Change name of 'Friends' to 'Vendors'’ is closed to new replies.