New Landing How can we help? Themeforest Theme Support Neighborhood Newsletter Subscripe: Change the wording

Viewing 15 posts - 1 through 15 (of 26 total)
  • #260133
    goodtimesmag
    Member
    Post count: 191

    Hi swiftideas team,

    what can I do to change the wording of the newsletter subscribe text “SUBSCRIBE” in the header into something individual? (see screenshot)

    Attachments:
    You must be logged in to view attached files.
    #260140
    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 'Checkout' :
    			$translated_text = __( 'Change me', $domain ); // change me
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );

    Thanks
    Mohammad

    #260147
    goodtimesmag
    Member
    Post count: 191

    I think this is not the right code, because nothing has changed. And why is ‘Checkout’ inside the code?

    #260149
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    I think it was supposed to be:

    function sf_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'Subscribe' :
    			$translated_text = __( 'Change me', $domain ); // change me
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );

    – Kyle

    #260163
    goodtimesmag
    Member
    Post count: 191

    Ok, I added this to my child theme, but nothing has changed:

    function sf_text_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case ‘Subscribe’ :
    $translated_text = __( ‘Sende mir die besten Deals per Email’, $domain ); // change me
    break;
    }
    return $translated_text;
    }
    add_filter( ‘gettext’, ‘sf_text_strings’, 20, 3 );

    #260177
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please make sure that you have activated the child theme.
    Thanks
    Mohammad

    #260283
    goodtimesmag
    Member
    Post count: 191

    Yes, the child theme is activated! But there is still “SUBSCRIBE” in the right corner and not my customized text.

    #260284
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

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

    #260332
    goodtimesmag
    Member
    Post count: 191
    This reply has been marked as private.
    #260348
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    I think it’s better to install this small plugin and translate to what you want.

    Real-Time Find and Replace

    -Rui

    #260357
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have managed to resolve the issue so please check it now.
    Thanks
    Mohammad

    #260383
    goodtimesmag
    Member
    Post count: 191

    Ok, thank you Mohammad. What was the problem?

    #260397
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Will forward to Mohammad so he can reply.
    -Rui

    #260452
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    There are some special character within string. I removed it resolve the issue.
    Thanks
    Mohammad

    #262055
    goodtimesmag
    Member
    Post count: 191

    Hi Mohammad,

    after the theme update my customized email subscribe text is not there anymore. What should I have to do to make this update-proof?

Viewing 15 posts - 1 through 15 (of 26 total)

You must be logged in to reply to this topic.