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 6 years, 11 months ago by
Asgaros.
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.
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 😉
Hello malaser
Using a Widget instead is also a possible way but – as you already figured out – they require a sidebar in your theme. 🙂
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.
I am happy to hear that the code seems to work now! 🙂