New Landing How can we help? Atelier Coupon Code

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Atelier
  • #313238
    AKMSLLC
    Member
    Post count: 8

    Hello,
    I would like to change the wording on the coupon section of the site. Rather than it saying ‘Coupon Code’ in the field and ‘Apply Coupon’ as a button, I would like them to say ‘To The Trade Code’ and ‘Apply’

    I tried this code suggested to another user but I couldn’t get it to work.

    I hope you can help.

    Thanks,
    Kathy

    ****************************************

    <?php
    function sf_text_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case ‘Coupon code’ :
    $translated_text = __( ‘YOUR TEXT’, $domain );//Change your text
    break;
    }
    return $translated_text;
    }
    add_filter( ‘gettext’, ‘sf_text_strings’, 20, 3 );
    ?>

    #313510
    David Martin – Support
    Moderator
    Post count: 20834

    The wording match should be exact. So use Coupon Code, assuming you are using and have active the child theme.

    Any issues, please add your FTP details.

    #313574
    AKMSLLC
    Member
    Post count: 8
    This reply has been marked as private.
    #314012
    David Martin – Support
    Moderator
    Post count: 20834

    You had not added the code to your child theme functions.php file.

    I have added the code and changed it to what you requested:

    	/* Change Coupon Code Text
    	================================================== */
    	function sf_text_strings( $translated_text, $text, $domain ) {
    		switch ( $translated_text ) {
    			case 'Coupon code' :
    				$translated_text = __( 'To The Trade Code', $domain );//Change your text
    			break;
    			case 'Apply Coupon' :
    				$translated_text = __( 'Apply', $domain );//Change your text
    			break;
    		}
    		return $translated_text;
    		}
    	add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    #314225
    AKMSLLC
    Member
    Post count: 8
    This reply has been marked as private.
    #314430
    David Martin – Support
    Moderator
    Post count: 20834

    Glad to help you out.

    If you have found the theme/support useful, we appreciate it if you can leave feedback on our item if you have the time as it really helps us out.

    Thanks.

    #314590
    AKMSLLC
    Member
    Post count: 8
    This reply has been marked as private.
    #314597
    David Martin – Support
    Moderator
    Post count: 20834

    Thank you, appreciated.

    In ThemeForest => Downloads, hover a star rating of your choice: https://themeforest.net/downloads

    – David.

    #314601
    AKMSLLC
    Member
    Post count: 8
    This reply has been marked as private.
    #314604
    David Martin – Support
    Moderator
    Post count: 20834

    Thank you very much.

    Any further questions, please let us know and we will happily assist you.

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

You must be logged in to reply to this topic.