Shopify Email syntax error, need help

I am trying to make a custom e-mail telling everyone we now have a loyalty program. I am using shopify e-mail marketting. It keeps telling my i have a syntax error on line 80

body { font-family: Arial, sans-serif; background-color: #f8f8f8; margin: 0; padding: 0; } .container { width: 100%; max-width: 600px; margin: 0 auto; background-color: #ffffff; padding: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .header { text-align: center; padding: 20px 0; background-color: #D303FF; color: white; } .header h1 { margin: 0; font-size: 28px; } .content { padding: 20px; text-align: center; } .content h2 { color: #D303FF; font-size: 24px; } .content p { color: #333; font-size: 16px; line-height: 1.5; } .button { display: inline-block; padding: 12px 25px; background-color: #D303FF; color: #ffffff; text-decoration: none; font-size: 16px; border-radius: 5px; margin-top: 20px; transition: background-color 0.3s ease; } .button:hover { background-color: #e0558f; } .footer { text-align: center; padding: 15px; font-size: 12px; color: #777; background-color: #f0f0f0; border-top: 1px solid #dddddd; } .footer a { color: #ff69b4; text-decoration: none; }

What She Needs

Introducing Our New Loyalty Program!

We are thrilled to offer you an opportunity to earn points with every purchase. Accumulate points and enjoy exclusive discounts, rewards, and special offers. It's our way of saying thank you for being a valued customer!

Join Now & Start Earning

Would you like to ?

© 2024 What She Needs. All Rights Reserved.

{{ email_footer }} {{ open_tracking_block }}

i underlined the line that has issues.

From the looks of it, the underlined line:

[Join Now & Start Earning](https://www.whatsheneeds.ca)

Has no syntax error

1 Like

that’s what i thought but this pops up

That’s weird. Can you try removing it for the moment and try saving it? Just to confirm that it’s actually

[Join Now & Start Earning](https://www.whatsheneeds.ca)

causing the problem

1 Like

once i removed it the code worked… is it potentially something the shopify email does not allow?

Huh, weird. Not entirely sure, but emails have strict rules when it comes to links. Try using this:

Join Now & Start Earning
1 Like

same thing… =[

Can you try removing the ampersand and replacing it with “and”?

Join Now and Start Earning
1 Like

That definitely did it and helped, but now do you know how to fix the "> next to unsubscribe?

Would you like to ?

© 2024 What She Needs. All Rights Reserved.

i think i need that in there to have proper syntax dont i? screenshot for reference…

Ah, it was the ampersand. Awesome!

Try this:


Would you like to Unsubscribe?

1 Like

it kinda made it worse :face_with_tongue:

Well, that was unexpected :grimacing: Try this:


Would you like to {{ unsubscribe_link }}?

2 Likes

you are amazing!

Awesome! Glad I helped! :slightly_smiling_face:

If, in the future, you’re looking for a developer to help you with store problems, feel free to contact me via my website below, you’ll also find my contact email there.

1 Like

i will tyvm