Change “Related post” in single blog page

This topic has 5 replies, 4 voices, and was last updated 10 months, 3 weeks ago ago by Andrew Mitchell

  • Avatar: Mirko
    Mirko
    Participant
    January 23, 2025 at 13:15

    Hi Support,
    how can I change “Related Posts” into “Related News” in single blog page?
    Many thanks 🙂

    Files is visible for topic creator and
    support staff only.
    4 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    January 23, 2025 at 13:25

    Hello, @Mirko,

    Thank you for using our theme and for contacting us.

    We appreciate you contacting us with your inquiry. We understand that you wish to modify the title on the Single Blog Page from “Related Posts” to “Related News”

    We can offer a viable workaround by utilizing the Loco Translate plugin, which allows for the translation or modification of text strings within the theme.

    You can find the plugin here:
    https://wordpress.org/plugins/loco-translate/

    For detailed guidance on how to implement this change, please refer to our theme documentation:
    https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/

    After installing the loco translate plugin > Please navigate to Loco > Themes > XStore > find Related post, change it as per your requirement, and save settings.

    Please see the images for reference in the private content area.

    Should you require any further assistance or have additional questions, please do not hesitate to reach out to us.

    Best regards,
    The 8Themes Team

    Please contact administrator
    for this information.
    Avatar: Mirko
    Mirko
    Participant
    January 23, 2025 at 13:57

    Thanks, any chances to do it by code?

    Avatar: Justin
    Luca Rossi
    Support staff
    January 24, 2025 at 06:10

    Hi @Mirko,

    Please try adding this custom code under functions.php file locates in your child theme:

    
    function n2t_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'Related posts' :
    			$translated_text = 'Related News';
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'n2t_text_strings', 20, 3 );
    

    Hope it helps!

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    January 24, 2025 at 10:57

    Dear Mirko,

    We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.

    Click here to rate now: https://themeforest.net/downloads

    Thank you sincerely for your ongoing support!

    Best Regards,
    The 8Theme Team

  • Viewing 5 results - 1 through 5 (of 5 total)

The issue related to '‘change “Related post” in single blog page’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.