This topic has 4 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #145358
     jryz
    Participant

    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.
    #145413
     Radu
    Moderator

    Hi,

    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 solution
    #146462
     jryz
    Participant

    Hi Radu

    my question is how to I change the text button into icon , not translate the text.

    #146546
     jryz
    Participant

    Hi Radu

    check out image attachment below

    regards
    jerry

    Attachments:
    You must be logged in to view attached files.
    #146767
     Radu
    Moderator

    I 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
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?