Site logo

Archived topic

Delete the coupon message notice in checkout page

13 replies · Started by xinghui on October 5, 2022

Viewing posts 1–14 of 14

OK,i put it at private

Try adding this in Appearance > Customize > Additional CSS:

.coupon-form form.checkout_coupon.woocommerce-form-coupon {
    display: block !important;
}

.coupon-form .woocommerce-form-coupon-toggle {
    display: none;
}

Thank you,Fernando,Now it's all gone, I want to show the below 'If you have a coupon code, please apply it below.' and the coupon form and button
like tihs image:https://i.postimg.cc/DwFzkF4w/Display-it.jpg

I see. Did you make any changes other than adding the code? Can you remove the code I provided?

i can delete your code,Before this I moved the position of my coupon form, but now I deleted the hook I added and it's back to the original position

Can you try this?:

.woocommerce-form-coupon-toggle {
    display: none;
}

form.checkout_coupon.woocommerce-form-coupon {
    display: block !important;
}

Why does the previous one still show?

Can you check all your CSS code here?: http://csslint.net/

I think there's a syntax error somewhere which may be causing issues.

Hi,Fernando,I checked all the CSS code as you said, modified the wrong code, and refreshed it again. The code you gave took effect. Thank you for your help. I will go to get yours first after adding CSS next time. Check it out with the tools, I learned a lot, thank you very much

You're welcome Xinghui!

This archived topic is closed to new replies.