• Resolved Malaser

    (@malaser)


    While many of my members understand to check this upon log on, a few do not.

    I’d like to simply change ACTIVITY to LATEST

    Even better for us would one for LATEST POSTS that just show postings, not new sections or topics. Is this possible ?

    Anyway, thanks for your help to me, and to others that have been also of interest to my usage.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hello @malaser

    You can have a look at the widgets which can be added to the sidebar of your theme. You can find them in Appearance – Widgets in the WordPress backend. There are widgets available for latest topics and latest posts as well.

    If you want to change the label for Activity to LATEST, you can add the following code-snippet to the end of your themes functions.php file (but before the ?> if there is one) by using Appearance – Theme Editor in the backend.

    add_filter('ngettext', 'change_ntranslations', 20, 5);
    add_filter('gettext', 'change_translations', 20, 3);
    function change_translations($translated_text, $untranslated_text, $domain) {
      if ($domain === 'asgaros-forum') {
        switch ($translated_text) {
          case 'Activity':
            $translated_text = 'Latest';
          break;
        }
      }
      return $translated_text;
    }
    function change_ntranslations($translation, $single, $plural, $number, $domain) {
      if ($domain === 'asgaros-forum') {
        $translation = change_translations($translation, '', 'asgaros-forum');
      }
      return $translation;
    }
    • This reply was modified 5 years, 9 months ago by Asgaros.
    Thread Starter Malaser

    (@malaser)

    I still have no luck withe themes functions.php file but the backend widgets do work, but the theme only has bottom widget. Since the forum display does not take up the entire screen width a sidebar would be better.
    But I would prefer to preserve the clean layout on the home page I have and just change ACTIVITY.

    Thread Starter Malaser

    (@malaser)

    I still have no luck with current theme functions.php Tried everything, nothing I put in there seems to work but after deciding to go find a free theme with at least one sidebar, seems TWENTY TEN does, so after a bit of playing around I now have a side bar with latest posts ascending and an excerpt under each to give the reader an idea what is in each.

    Almost there ??

    Plugin Author Asgaros

    (@asgaros)

    Hello malaser

    Using a Widget instead is also a possible way but – as you already figured out – they require a sidebar in your theme. ??

    Thread Starter Malaser

    (@malaser)

    Finally …

    Found a theme (Sydney ) that allowed me to add this code in the backend Theme Editor and actually execute it. and also keep everything as I wanted.

    That looks like the last modification that I’ve been seeking, done!

    Thanks.

    Plugin Author Asgaros

    (@asgaros)

    I am happy to hear that the code seems to work now! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change the label ACTIVITY’ is closed to new replies.