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

Viewing 11 posts - 16 through 26 (of 26 total)
  • #262081
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please insert the custom css code at Admin > Theme Options > General Options > Custom CSS.
    Thanks
    Mohammad

    #262120
    goodtimesmag
    Member
    Post count: 191

    Which css code do you mean?

    #262132
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    I just forwarded the topic to Mohammad so he can reply.

    -Rui

    #262155
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove my last code and use this new code:-

    function sf_text_strings( $translated_text, $text, $domain ) {
    $translated_text = preg_replace("/.(?R)*\[BS\]/","",$translated_text);
    	switch ( $translated_text ) {
    		case 'Subscribe' :
    			$translated_text = __( 'Change me', $domain ); // change me
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    #262160
    goodtimesmag
    Member
    Post count: 191

    Hmm, I made the changes and tested the website with a fresh cache, but nothing has changed!

    #262171
    Mohammad – SUPPORT
    Moderator
    Post count: 27441
    function sf_text_strings( $translated_text, $text, $domain ) {
    
    	$pos = strpos($translated_text, 'Subscribe');
    		if($pos!==false)
    			$translated_text = __( 'Change me', $domain ); // change me
    	
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );

    Thanks
    Mohammad

    #262182
    goodtimesmag
    Member
    Post count: 191

    If I add this I can not open the site anymore.

    #262210
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Just try this :-

    function sf_text_strings( $translated_text, $text, $domain ) {
    
    	$pos = strpos($translated_text, 'Subscribe');
    		if($pos!==false){
    			$translated_text = __( 'Change me', $domain ); // change me
    	
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );

    Thanks
    Mohammad

    #262212
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Just try this :-

    function sf_text_strings( $translated_text, $text, $domain ) {
    
    	$pos = strpos($translated_text, 'Subscribe');
    		if($pos!==false){
    			$translated_text = __( 'Change me', $domain ); // change me
    	
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );

    Thanks
    Mohammad

    #262214
    goodtimesmag
    Member
    Post count: 191

    Now it works, thanks!

    #262232
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Glad to help you.
    Thanks
    Mohammad

Viewing 11 posts - 16 through 26 (of 26 total)

You must be logged in to reply to this topic.