This topic has 4 replies, 2 voices, and was last updated 8 years by KyndFellow.
-
Author
-
October 8, 2017 at 07:49 #175988
KyndFellow
ParticipantCan we change the titles of blog and forum area? I want to change “Forums” to Discussion, and “Blog” to Our Stories. Please see my screenshots.
October 8, 2017 at 17:01 #176029Kieran_SQ
ModeratorHi,
Please try the below snippets in your SweetDate Child theme to translate the desired words. You should also rename your blog page to Our Stories / ‘our-stories’ (see attachment).
COPY CODE// Translate Forums to Discussion add_filter('gettext', 'translate_reply'); add_filter('ngettext', 'translate_reply'); function translate_reply($translated) { $translated = str_ireplace('Forums', 'Discussion', $translated); return $translated; }COPY CODE// Translate Blog to Our Stories add_filter('gettext', 'translate_reply'); add_filter('ngettext', 'translate_reply'); function translate_reply($translated) { $translated = str_ireplace('Blog', 'Our Stories', $translated); return $translated; }Thanks,
Kieran.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 9, 2017 at 11:50 #176086KyndFellow
ParticipantWhere am I supposed to insert this snippet?
// Translate Forums to Discussion
add_filter(‘gettext’, ‘translate_reply’);
add_filter(‘ngettext’, ‘translate_reply’);
function translate_reply($translated) {
$translated = str_ireplace(‘Forums’, ‘Discussion’, $translated);
return $translated;
}I tried inserting in the Sweetdates > Styling Options > Quick CSS
Please send a screenshot and tell me path of where to insert this
October 9, 2017 at 17:34 #176122Kieran_SQ
ModeratorHi,
My apologies, I forgot to explain where to add the code. Please go to WP Admin > Appearance > Editor > SweetDate Child > Functions.php (see screenshot)
Kieran.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionOctober 10, 2017 at 10:22 #176203KyndFellow
ParticipantAwesome. That work. Thanks so much. I never knew we could do this. 🙂
-
AuthorPosts
You must be logged in to reply to this topic.