Home › Forums › WoodMart support forum › Waitlist – email button styling
Waitlist – email button styling
- This topic has 9 replies, 2 voices, and was last updated 3 months, 2 weeks ago by
Luke Nielsen.
-
AuthorPosts
-
January 20, 2025 at 1:12 am #630931
Puddle123ParticipantHi,
Thank you for making the waitlist.
I see you can edit the email templates, but I’m not sure how to change the colour of the text for the Add to Cart Button {add_to_cart_url} or Confirmed Now button {confirm_button}. My website has the email base colour as yellow #fffa56, the button takes this colour. The text is white which makes it very hard to read. Can you help me change the colour of the text or the button?
Attachments:
You must be logged in to view attached files.January 20, 2025 at 5:19 pm #631213
Luke NielsenKeymasterHello,
Is there any chance that you could give me access to the dashboard area so I can check the site settings?
Looking forward to collaborating with you!
Kind Regards
January 20, 2025 at 5:39 pm #631220
Puddle123ParticipantSure, thanks in advance for your time and support.
I’ve shared access to our staging website, please note the outgoing emails are disabled so that users don’t get irrelevant emails.
January 22, 2025 at 12:28 pm #631765
Luke NielsenKeymasterHello,
Please add the code below to the functions.php file in your child theme:
https://codefile.io/f/CnBWTHwG2f
Kind Regards
-
This reply was modified 4 months ago by
Luke Nielsen.
-
This reply was modified 4 months ago by
Luke Nielsen.
February 5, 2025 at 12:14 am #635428
Puddle123ParticipantHi Luke, thanks for the code. When I applied it, it didn’t work. I checked the code using ChatGPT and it said “the code is incorrect because of the way the CSS block is enclosed. The backticks (
) are not valid in PHP for defining strings unless you are using a feature like heredoc or nowdoc, which isn’t the case here.” When I used the suggested code it worked okay.
Are you able to check the revised code is safe to use?
Revised code:
add_filter( ‘woocommerce_email_styles’, function ( $css, $email ) {
$css .= ‘
table .xts-add-to-cart, .xts-add-to-cart {
color: #333;
}
‘;return $css;
}, 11, 2 );That hopefully fixes the styling for the add to cart button.
Finally, please can you help me fix the “confirm now” button which is in the first email. Same as the add to cart button, I need the text to be changed from white.
February 5, 2025 at 10:51 am #635510
Luke NielsenKeymasterHello,
Now, it should work well, please recheck the issue and let me know.
Thank you in advance.
Kind Regards
February 5, 2025 at 11:43 am #635543
Puddle123ParticipantHi, thanks for your reply. The code works for the “add to cart” button. Please can you provide me with the code for the “confirm now” button which is in the first email – screenshot attached.
Attachments:
You must be logged in to view attached files.February 6, 2025 at 10:13 am #635824
Luke NielsenKeymasterHello,
Please clarify, how can I access to the admin panel – https://prnt.sc/HIWFGddRwlo3
I await your response.
Kind Regards
February 6, 2025 at 3:00 pm #635940
Puddle123ParticipantHi, thanks for your reply. The code is actually working okay for both buttons, so we are all good 🙂 Thanks for your help.
February 6, 2025 at 3:13 pm #635944
Luke NielsenKeymasterHello,
You’re very welcome! I’m glad everything is working as expected now. If you need any further assistance in the future, feel free to reach out.
Kind regards
-
This reply was modified 4 months ago by
-
AuthorPosts
The topic ‘Waitlist – email button styling’ is closed to new replies.
- You must be logged in to create new topics. Login / Register