- This topic has 13 replies, 2 voices, and was last updated 3 years, 5 months ago by
Fernando.
-
AuthorPosts
-
October 5, 2022 at 11:48 pm #2364826
xinghui
I want to remove the message text of the coupon for the checkout page and only show the coupon form below, how to do it
image_url:https://i.postimg.cc/TP3dH18r/delete-coupon.jpgOctober 5, 2022 at 11:50 pm #2364830Fernando Customer Support
Hi Xingui,
Can you provide a link where we can view this?
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
October 5, 2022 at 11:57 pm #2364837xinghui
OK,i put it at private
October 6, 2022 at 12:01 am #2364839Fernando Customer Support
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; }October 6, 2022 at 12:11 am #2364846xinghui
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.jpgOctober 6, 2022 at 12:40 am #2364875Fernando Customer Support
I see. Did you make any changes other than adding the code? Can you remove the code I provided?
October 6, 2022 at 12:45 am #2364889xinghui
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
October 6, 2022 at 12:50 am #2364894Fernando Customer Support
Can you try this?:
.woocommerce-form-coupon-toggle { display: none; } form.checkout_coupon.woocommerce-form-coupon { display: block !important; }October 6, 2022 at 12:54 am #2364897xinghui
Why does the previous one still show?
October 6, 2022 at 12:58 am #2364901Fernando Customer Support
Can you check all your CSS code here?: http://csslint.net/
I think there’s a syntax error somewhere which may be causing issues.
October 6, 2022 at 1:06 am #2364907xinghui
I checked and there are only warnings and no errors
image_url:https://i.postimg.cc/N0nzbczb/warning.jpgOctober 6, 2022 at 1:33 am #2364927Fernando Customer Support
I mean everything in your Additional CSS.
See upon testing: https://share.getcloudapp.com/P8u7Q4AZ
October 6, 2022 at 1:45 am #2364936xinghui
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
October 6, 2022 at 4:53 pm #2365720Fernando Customer Support
You’re welcome Xinghui!
-
AuthorPosts
- You must be logged in to reply to this topic.