-
Author
-
November 25, 2016 at 22:30 #145358jryzParticipant
Hi
I wanted to know how can I change buddypress activity status text label to icon.
Attachments:
You must be logged in to view attached files.November 28, 2016 at 13:04 #145413RaduModeratorHi,
Please use the next method to can change php strings very easy.
Theme strings and plugins strings can easily be changed by using Loco Translate plugin https://wordpress.org/plugins/loco-translate/
A small introduction on how translations work
Translatable strings can come from the theme or from the installed plugins. You need to translate the theme or the plugin depending on what section of the site your string is found.
For example if your string is on your BuddyPress profile then most probably you will need to translate BuddyPress plugin. If you are on the Forums section of your site then bbPress plugin should be the one that needs to be translated. Another example is the rtMedia plugin that adds the Media links to BuddyPress and if you want to translate it then this plugin will contain the string.
Follow these steps to get you started:
- Install Loco Translate plugin
- Go to the plugin dashboard: WP Admin – Tools – Manage translations
- Find the theme or plugin in the list.
- If the language isn’t already in the list then click Add new language, choose your language and if you are asked where you want to save the language files choose global language directory ( wp-content/languages/ ).
- Press SYNC button to synchronise your translation with the provided .pot file
- Search for the string you want to translate and add your translated string.
- Press Save when you finished your translation.
Note: You will have to set the language for your blog from WP-admin – Settings – General – Site Language – Choose your language
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 8, 2016 at 20:22 #146462jryzParticipantHi Radu
my question is how to I change the text button into icon , not translate the text.
December 9, 2016 at 13:40 #146546jryzParticipantHi Radu
check out image attachment below
regards
jerryAttachments:
You must be logged in to view attached files.December 12, 2016 at 16:40 #146767RaduModeratorI see, for that isn’t a specific option, if you want to add there icons instead of text link you will have to edit this template file : /wp-content/themes/kleo/buddypress/activity/entry.php but you will have to copy this file to child theme to can have those modifications even you update the theme, so first copy this file : /wp-content/themes/kleo/buddypress/activity/entry.php to /wp-content/themes/kleo-child/buddypress/activity/entry.php
Then take a look at this screenshot
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.