A user seeks to change text and button colors to white in their store’s email notifications. Screenshots show the current email template with visibility issues.
Initial Attempts:
One responder suggests CSS code targeting button and text elements in theme.css/base.css files
This solution fails to work for the user
Successful Resolution:
Support team member (DaisyVo) requests the full email notification template code
User shares the order confirmation template code (written in Norwegian/Liquid template language)
DaisyVo provides custom CSS/style code to be inserted above the </head> tag in the email template
The solution successfully changes the text and button colors to white
Status: Resolved. The user confirms the final code works after multiple unsuccessful attempts with other solutions.
Summarized with AI on November 2.
AI used: claude-sonnet-4-5-20250929.
this is just for order confermation. do i have to share code for all the notifications?
code:
{% capture email_title %}
{% if has_pending_payment %}
Takk for bestillingen
{% else %}
Takk for handelen!
{% endif %}
{% endcapture %}
{% capture email_body %}
{% if has_pending_payment %}
{% if buyer_action_required %}
Du får en e-postbekreftelse når betalingen er fullført.
{% else %}
Betalingen behandles. Du får en e-postmelding når bestillingen er bekreftet.
{% endif %}
{% else %}
{% if requires_shipping %}
{% case delivery_method %}
{% when ‘pick-up’ %}
Du mottar en e-post når bestillingen er klar for henting.
{% when ‘local’ %}
Hei {{ customer.first_name }}, bestillingen din gjøres klar for levering.
{% else %}
Vi gjør bestillingen din klar til sending. Vi varsler deg så snart den er sendt.
{% endcase %}
{% if delivery_instructions != blank %}
Leveringsinformasjon: {{ delivery_instructions }}
{% endif %}
{% if consolidated_estimated_delivery_time %}
{% if has_multiple_delivery_methods %}
{% assign transaction_count = transactions | size %}
{% if transaction_count > 0 %}
{% for transaction in transactions %}
{% if transaction.show_buyer_pending_payment_instructions? %}
{{transaction.buyer_pending_payment_notice}}
{% for instruction in transaction.buyer_pending_payment_instructions %}
{% endfor %}
{% for instruction in transaction.buyer_pending_payment_instructions %}
{% endfor %}
{% if line.selling_plan_allocation %} {{ line.selling_plan_allocation.selling_plan.name }}
{% endif %}
{% if line.refunded_quantity > 0 %} Refundert
{% endif %}
{% if line.discount_allocations %}
{% for discount_allocation in line.discount_allocations %}
{% if discount_allocation.discount_application.target_selection != ‘all’ %}
{% if order_discount_count > 0 %}
{% if order_discount_count == 1 %}
{% endif %}
{% if order_discount_count > 1 %}
{% endif %}
{% for discount_application in discount_applications %}
{% if discount_application.target_selection == ‘all’ and discount_application.target_type != ‘shipping_line’ %}
{% endif %}
{% endfor %}
{% endif %}
{% unless retail_delivery_only %}
{% if delivery_method == ‘pick-up’ %}
{% else %}
{% if has_shipping_discount %}
{% if free_shipping == true %}
{% if requires_shipping and shipping_address %}
{% endif %}
{% if billing_address %}
{% endif %}
Leveringsadresse
{{ shipping_address | format_address }}
Faktureringsadresse
{{ billing_address | format_address }}
{% if company_location %}
{% endif %}
{% if transaction_size > 0 or payment_terms and payment_terms.automatic_capture_at_fulfillment == false or b2b? %}
{% endif %}
{% if requires_shipping and shipping_address %}
{% if shipping_method %}
{% endif %}
{% endif %}
Lokalisasjon
{{ company_location.name }}
Betaling
{% if payment_terms %}
{% assign due_date = payment_terms.next_payment.due_at | default: nil %}
{% if payment_terms.type == 'receipt' or payment_terms.type == 'fulfillment' and payment_terms.next_payment.due_at == nil %}
{{ payment_terms.translated_name }}
{% else %}
{{ payment_terms.translated_name }}: Forfaller {{ due_date | date: format: 'date' }}
{% endif %}
{% endif %}
{% if transaction_size > 0 %}
{% for transaction in transactions %}
{% if transaction.status == "success" or transaction.status == "pending" %}
{% if transaction.kind == "capture" or transaction.kind == "sale" %}
{% if transaction.payment_details.gift_card_last_four_digits %}
slutter på {{ transaction.payment_details.gift_card_last_four_digits }}
{% elsif transaction.payment_details.credit_card_company %}
slutter med {{ transaction.payment_details.credit_card_last_four_digits }}
{% elsif transaction.gateway_display_name == "Gift card" %}
slutter med {{ transaction.payment_details.gift_card.last_four_characters | upcase }}
Gavekortsaldo - {{ transaction.payment_details.gift_card.balance | money }}
{% elsif transaction.gateway_display_name != "Shop Cash" %}
{{ transaction.gateway_display_name }}
{% endif %}
{% elsif transaction.kind == "authorization" and transaction.gateway_display_name == "Shop Cash" %}
Shop Cash
{% endif %}
{% endif %}
{% endfor %}
{% endif %}