New Landing How can we help? Atelier Translation

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Atelier
  • #284428
    sbnuman
    Member
    Post count: 34

    I am using a Recent posts element on my homepage.
    I have activated the Blog page button so they can choose to go to All posts.
    This gives me the View all Articles on my homepage which they can click to go to all the posts.
    I need to translate this text, but can’t find it anywhere. I’m using Loco translate

    Thank you

    #284453
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    function sf_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'VIEW ALL ARTICLES' :
    			$translated_text = __( 'CHANGE ME', $domain ); // change it
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    

    Thanks ๐Ÿ™‚
    Mohammad

    #284668
    sbnuman
    Member
    Post count: 34

    Hi

    I’ve added the code to the child theme funtions.php but it doesn’t seem to be doing something. Is there something else I should be doing or does it matter where I place it in the functions file? I just added it at the bottom

    #284727
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me login detail to check and resolve the issue.
    Thanks
    Mohammad

    #286892
    sbnuman
    Member
    Post count: 34
    This reply has been marked as private.
    #286916
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have managed to resolve the issue so please change the text only in code.
    Thanks
    Mohammad

    #287230
    sbnuman
    Member
    Post count: 34

    And where do I do that?

    #287261
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I made changes in functions.php of child theme. So find and replace the CHANGE ME text.
    Thanks ๐Ÿ™‚
    Mohammad

    #292482
    sbnuman
    Member
    Post count: 34

    Hi

    I made the canges, but the left “bekijk alle blogs” links back to the homepage. It is meant to link to http://voedzo.nl/voedzo-berichten/

    #292521
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can only change the translation through this code. You cant change the link.
    Thanks
    Mohammad

    #293060
    sbnuman
    Member
    Post count: 34

    So at the moment it is linking back to the homepage. How do I change it to link to the correct page?

    #293071
    David Martin – Support
    Moderator
    Post count: 20834

    Theme Options => Custom Post Type Options => Blog Page

    Thanks.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register