New Landing How can we help? Atelier Remove "Choose a" from variable products

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Atelier
  • #299502
    hellojonesie
    Member
    Post count: 50

    Hello!

    Do you know if it’s possible to remove the words “Choose a” from the variable selection boxes? OR – is it possible to change the language ?

    Thank you!
    Amy Jones

    Attachments:
    You must be logged in to view attached files.
    #299539
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Amy,

    The language can be changed from within the language file, the tranalation instructions are here: http://www.swiftideas.com/knowledgebase/translating-the-theme-using-poedit/.

    Or you can edit the filter to remove the text, an example is this:

    Please install and activate the supplied child theme, inside the child theme functions.php file paste the below

    	/* VARIABLE PRODUCT CUSTOM SELECT
    	================================================== */
    	if ( ! function_exists( 'sf_wc_filter_dropdown_args' ) ) {
    		function sf_wc_filter_dropdown_args( $args ) {
    		    $variation_tax = get_taxonomy( $args['attribute'] );
    		    $prefix_text = esc_html__( 'Select ', 'swiftframework' );
    		    $prefix_text .= $variation_tax->labels->name;
    		    $args['show_option_none'] = apply_filters( 'the_title', $prefix_text );
    		    return $args;
    		}
    		add_filter( 'woocommerce_dropdown_variation_attribute_options_args', 'sf_wc_filter_dropdown_args', 10 );
    	}
    #299745
    hellojonesie
    Member
    Post count: 50

    Okay Ill give that a try, thanks David!

    #299749
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Thanks David
    -Rui

Viewing 4 posts - 1 through 4 (of 4 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