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.