Two questions please

How do I make the “Apply Coupon” button say only “Apply”, and how do I change the padding for that button?

Site: [giftgivers.us](https://giftgivers.us)

theme: Astra Pro

woocommerce is being used

chatgpt told me to use the php:

add\_filter(‘woocommerce\_coupon\_message’, ‘change\_coupon\_button\_text’); function change\_coupon\_button\_text($message) { $message = str\_replace(‘Apply Coupon’, ‘Apply’, $message); return $message; }

within Code Snippets, but that didn’t work

P.S. I’m a noob

1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer