Coupon Code Font Color

How can I change the font color of the ‘Coupon Code’ on the shopping cart page? It needs to be easier to see.

Hi There,

Thanks for writing in!

I can see the font color is fine when you type the coupon code.
The placeholder text is little off color, If you want to change that please add this CSS to your theme option-> CSS.

.woocommerce .cart .actions .coupon input::placeholder {
  color: #333;
}

Hope this is something you are looking for.

Thanks

That seemed to help.

How can I change the text from ‘Coupon Code’ to ‘Enter Coupon Code’?

Thanks

Hi,

To change it, you can add the code below in your child theme’s functions.php file.

function my_text_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
        case 'Coupon code' :
            $translated_text = __( 'Enter Coupon Code', 'woocommerce' );
            break;
    }
    return $translated_text;
}
add_filter( 'gettext', 'my_text_strings', 20, 3 );

Please add it after this line

// Additional Functions
// =============================================================================

Hope that helps

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.