This topic has 4 replies, 2 voices, and was last updated 7 years by KyndFellow.

  • Author
  • #175988
     KyndFellow
    Participant

    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.
    #176029
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.
    #176086
     KyndFellow
    Participant

    Where 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

    #176122
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.
    #176203
     KyndFellow
    Participant

    Awesome. That work. Thanks so much. I never knew we could do this. 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?