This topic has 4 replies, 2 voices, and was last updated 7 years by KyndFellow.
-
Author
-
October 8, 2017 at 07:49 #175988KyndFellowParticipant
Can 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.
Attachments:
You must be logged in to view attached files.October 8, 2017 at 17:01 #176029Kieran_SQModeratorHi,
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 solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
Attachments:
You must be logged in to view attached files.October 9, 2017 at 11:50 #176086KyndFellowParticipantWhere 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_SQModeratorHi,
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 solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
Attachments:
You must be logged in to view attached files.October 10, 2017 at 10:22 #176203KyndFellowParticipantAwesome. That work. Thanks so much. I never knew we could do this. 🙂
-
AuthorPosts
You must be logged in to reply to this topic.