New Landing How can we help? Atelier Changing text on drop down size option on product page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #278002
    wayward_studio
    Member
    Post count: 71

    Hello staff,

    I would like to know if it is possible to change the text on the drop down menu which offers the customer the option to change the size. Currently it reads ‘choose an option’ I want to know how I can change it to say something else.

    Thanks,

    Adam

    #278027
    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 'Choose an option' :
    			$translated_text = __( 'Your text', $domain ); //just use your string
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    

    Thanks
    Mohammad

    #278051
    wayward_studio
    Member
    Post count: 71
    This reply has been marked as private.
    #278067
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779
    This reply has been marked as private.
    #278108
    wayward_studio
    Member
    Post count: 71
    This reply has been marked as private.
    #278122
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    You don’t have the Atelier child theme installed. It’s inside the big zip file downloaded from the Themeforest download area.
    You will also need to update the theme to the latest version, not sure if you made any custom modifications in the code.

    -Rui

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

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

License required for one of the following items
Login and Registration Log in · Register