Home Forums WoodMart support forum Waitlist – email button styling

Waitlist – email button styling

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #630931

    Puddle123
    Participant

    Hi,

    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.
    #631213

    Luke Nielsen
    Keymaster

    Hello,

    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

    #631220

    Puddle123
    Participant

    Sure, 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.

    #631765

    Luke Nielsen
    Keymaster

    Hello,

    Please add the code below to the functions.php file in your child theme:

    https://codefile.io/f/CnBWTHwG2f

    Kind Regards

    #635428

    Puddle123
    Participant

    Hi 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.

    #635510

    Luke Nielsen
    Keymaster

    Hello,

    Now, it should work well, please recheck the issue and let me know.

    Thank you in advance.

    Kind Regards

    #635543

    Puddle123
    Participant

    Hi, 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.
    #635824

    Luke Nielsen
    Keymaster

    Hello,

    Please clarify, how can I access to the admin panel – https://prnt.sc/HIWFGddRwlo3

    I await your response.

    Kind Regards

    #635940

    Puddle123
    Participant

    Hi, thanks for your reply. The code is actually working okay for both buttons, so we are all good 🙂 Thanks for your help.

    #635944

    Luke Nielsen
    Keymaster

    Hello,

    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

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Waitlist – email button styling’ is closed to new replies.