how do i make text for email notifications for customers white, and also the buttons white?
Hi @silenceclothing
It seems the screenshot has been taken from Email Notification.
Would you mind sharing a full screenshot so we can check it further?
Best,
Daisy - Avada Support Team.
@silenceclothing
Can you send the link of this page/section?
i want text and buttons for all the email notifictations to be white.
@silenceclothing
Please click here:
And copy all the code there to the file and share with me the file please. Thank you
Looking forward to hearing from you soon. Thank you!
Best,
Daisy - Avada Support Team.
@silenceclothing
Go to Online Store → Theme → Edit code.
Open your theme.css / based.css file and paste the code in the bottom of the file.
table.button.main-action-cell td.button__cell a {
background: #fff !important;
color: black !important;
}
td.content__cell center table.container tbody tr td p {
color: #ffff !important;
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
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 %}
Estimert leveranse
{{ consolidated_estimated_delivery_time }}
{% else %}
Estimert leveranse {{ consolidated_estimated_delivery_time }}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% assign gift_card_line_items = line_items | where: "gift_card" %}
{% assign found_gift_card_with_recipient_email = false %}
{% for line_item in gift_card_line_items %}
{% if line_item.properties["__shopify_send_gift_card_to_recipient"] and line_item.properties["Recipient email"] %}
{% assign found_gift_card_with_recipient_email = true %}
{% break %}
{% endif %}
{% endfor %}
{% if found_gift_card_with_recipient_email %}
Gavekortmottakeren får en e-postmelding med gavekortkoden.
{% elsif gift_card_line_items.first %}
Du vil motta separate e-poster for eventuelle gavekort.
{% endif %}
{% endcapture %}
{{ email_title }}
.body {background: #202a44;}
.button__cell { background: {{ shop.email_accent_color }}; }
a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
{%- if shop.email_logo_url %}
{%- else %}
{%- endif %}
{%- if po_number %}
{%- endif %}
Bestilling {{ order_name }}
PO-nummer {{ po_number }}
{{ email_title }}
{{ email_body }}
{% 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 %}
{{ instruction.header }} Beløp
{{ instruction.value }} {{transaction.amount | money}}
{% endif %}
{% endfor%}
{% endif %}
{% if order_status_url %}
{% if shop.url %}
{% endif %}
{% else %}
{% if shop.url %}
{% endif %}
{% endif %}
{% for line in subtotal_line_items %}
{% if line.groups.size == 0 %}
{% endif %}
{% endfor %}
{% for line_item_group in line_item_groups %}
{% assign final_line_price = 0 %}
{% assign original_line_price = 0 %}
{% assign discount_keys_str = “” %}
{% for component in line_item_group.components %}
{% assign final_line_price = final_line_price | plus: component.final_line_price %}
{% assign original_line_price = original_line_price | plus: component.original_line_price %}
{% for da in component.discount_allocations %}
{% if da.discount_application.target_selection != ‘all’ %}
{% assign discount_key = da.discount_application.title | append: da.discount_application.type %}
{% assign discount_keys_str = discount_keys_str | append: discount_key | append: “,” %}
{% endif %}
{% endfor %}
{% endfor %}
{% assign discount_keys = discount_keys_str | split: “,” | uniq %}
{% endfor %}
{% assign expand_bundles = false %}
{% if expand_bundles and line.bundle_parent? %}
{% else %}
{% endif %}
{% if expand_bundles and line.bundle_parent? %}
{% if line.image %}
{% else %}
{% endif %}
{% if line.image %}
{% else %}
{% endif %}
{% if line.product.title %}
{% assign line_title = line.product.title %}
{% else %}
{% assign line_title = line.title %}
{% endif %}
{% if line.quantity < line.quantity %}
{% capture line_display %}
{{ line.quantity }} av {{ line.quantity }}
{% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}
{{ line_title }} × {{ line_display }}
{% if line.variant.title != ‘Default Title’ and line.bundle_parent? == false %}
{{ line.variant.title }}
{% elsif line.variant.title != ‘Default Title’ and line.bundle_parent? and expand_bundles == false %}
{{ line.variant.title }}
{% endif %}
{% if expand_bundles %}
{% for component in line.bundle_components %}
{% if component.image %}
{% else %}
{% endif %}
{% if component.product.title %}
{% assign component_title = component.product.title %}
{% else %}
{% assign component_title = component.title %}
{% endif %}
{% assign component_display = component.quantity %}
{{ component_display }} × {{ component_title }}
{% if component.variant.title != ‘Default Title’%}
{{ component.variant.title }}
{% endif %}
{% endfor %}
{% else %}
{% for group in line.groups %}
En del av: {{ group.display_title }}
{% endfor %}
{% endif %}
{% if line.gift_card and line.properties[“__shopify_send_gift_card_to_recipient”] %}
{% for property in line.properties %}
{% assign property_first_char = property.first | slice: 0 %}
{% if property.last != blank and property_first_char != ‘_’ %}
{% endif %}
{% endfor %}
{% endif %}
{% 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’ %}
{{ discount_allocation.discount_application.title | upcase }}
(-{{ discount_allocation.amount | money }})
{% endif %}
{% endfor %}
{% endif %}
{% else %}
{% endif %}
{% if line.original_line_price != line.final_line_price %}
{{ line.original_line_price | money }}
{% endif %}
{% if line.final_line_price > 0 %}
{{ line.final_line_price | money }}
{% else %}
Gratis
{% endif %}
{% if line_item_group.image %}
{% else %}
{% endif %}
{{ line_item_group.title }} × {{ line_item_group.quantity }}
{% for discount_key in discount_keys %}
{% assign discount_amount = 0 %}
{% for component in line_item_group.components %}
{% for da in component.discount_allocations %}
{% assign key = da.discount_application.title | append: da.discount_application.type %}
{% if da.discount_application.target_selection != ‘all’ and key == discount_key %}
{% assign discount_amount = discount_amount | plus: da.amount %}
{% assign discount_title = da.discount_application.title %}
{% endif %}
{% endfor %}
{% endfor %}
{{ discount_title | upcase }}
(-{{ discount_amount | money }})
{% endfor %}
{% for component in line_item_group.components %}
{% if component.image %}
{% else %}
{% endif %}
{% if component.product.title %}
{% assign component_title = component.product.title %}
{% else %}
{% assign component_title = component.title %}
{% endif %}
{{ component.quantity }} × {{ component_title }}
{% if component.variant.title != ‘Default Title’%}
{{ component.variant.title }}
{% endif %}
{% endfor %}
{% if original_line_price != final_line_price %}
{{ original_line_price | money }}
{% endif %}
{% if final_line_price > 0 %}
{{ final_line_price | money }}
{% else %}
Gratis
{% endif %}
{% assign total_order_discount_amount = 0 %}
{% assign has_shipping_discount = false %}
{% assign epsilon = 0.00001 %}
{% for discount_application in discount_applications %}
{% if discount_application.target_selection == ‘all’ and discount_application.target_type == ‘line_item’ %}
{% assign order_discount_count = order_discount_count | plus: 1 %}
{% assign total_order_discount_amount = total_order_discount_amount | plus: discount_application.total_allocated_amount %}
{% endif %}
{% if discount_application.target_type == ‘shipping_line’ %}
{% assign has_shipping_discount = true %}
{% assign shipping_discount_title = discount_application.title %}
{% if discount_application.total_allocated_amount == 0 %}
{% assign discount_value_price = discount_application.value | times: 100 %}
{% else %}
{% assign discount_value_price = discount_application.total_allocated_amount %}
{% endif %}
{% assign shipping_amount_minus_discount_value_price = shipping_price | minus: discount_value_price %}
{% assign shipping_amount_minus_discount_value_price_abs = shipping_amount_minus_discount_value_price | abs %}
{% assign discount_application_value_type = discount_application.value_type | strip %}
{% if shipping_amount_minus_discount_value_price_abs < epsilon or discount_application_value_type == ‘percentage’ and discount_application.value == 100 %}
{% assign free_shipping = true %}
{% else %}
{% assign discounted_shipping_price = shipping_amount_minus_discount_value_price %}
{% endif %}
{% endif %}
{% endfor %}
{% 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 %}
{% else %}
{% endif %}
{% else %}
{% endif %}
{% endif %}
{% endunless %}
{% if total_duties %}
{% endif %}
{% if total_tip and total_tip > 0 %}
{% endif %}
Totalsum
{{ subtotal_price | plus: total_order_discount_amount | money }}
Bestillingsrabatt
-{{ total_order_discount_amount | money }}
Bestillingsrabatter
-{{ total_order_discount_amount | money }}
{{ discount_application.title }} (-{{ discount_application.total_allocated_amount | money }})
Henting
{{ shipping_price | money }}
Frakt
{{ shipping_price | money}}
Gratis
Frakt
{{ shipping_price | money }}
{{ discounted_shipping_price | money }}
{{ shipping_discount_title }} (-{{ discount_value_price | money }})
Frakt
{{ shipping_price | money }}
Tollplikter
{{ total_duties | money }}
Skatter
{{ tax_price | money }}
Tip
{{ total_tip | money }}
{% assign transaction_size = 0 %}
{% assign transaction_amount = 0 %}
{% assign net_transaction_amount_rounding = 0 %}
{% for transaction in transactions %}
{% if transaction.status == “success” %}
{% if transaction.kind == “sale” or transaction.kind == “capture” %}
{% assign transaction_size = transaction_size | plus: 1 %}
{% assign transaction_amount = transaction_amount | plus: transaction.amount %}
{% if transaction.amount_rounding != nil %}
{% assign net_transaction_amount_rounding = net_transaction_amount_rounding | plus: transaction.amount_rounding %}
{% endif %}
{% elsif transaction.kind == “refund” or transaction.kind == “change” %}
{% assign transaction_size = transaction_size | plus: 1 %}
{% assign transaction_amount = transaction_amount | minus: transaction.amount %}
{% if transaction.amount_rounding != nil %}
{% assign net_transaction_amount_rounding = net_transaction_amount_rounding | minus: transaction.amount_rounding %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% if payment_terms and payment_terms.automatic_capture_at_fulfillment == false or b2b? %}
{% assign next_payment = payment_terms.next_payment %}
{% assign due_at_date = next_payment.due_at | date: "%b %d, %Y" %}
{% if net_transaction_amount_rounding != 0 %}
{% if total_discounts > 0 %}
{% endif %}
{% endif %}
{% assign next_amount_due = total_price %}
{% if next_payment %}
{% assign next_amount_due = next_payment.amount_due %}
{% endif %}
{% if payment_terms.type == ‘receipt’ %}
{% elsif payment_terms.type == ‘fulfillment’ %}
{% else %}
{% endif %}
{% if total_discounts > 0 and net_transaction_amount_rounding == 0 %}
{% endif %}
{% else %}
{% if total_discounts > 0 %}
{% endif %}
{% if net_transaction_amount_rounding != 0 %}
{% if financial_status == 'paid' %}
{% endif %}
{% endif %}
{% if transaction_amount != total_price and payment_terms == nil%}
{% endif %}
{% endif %}
Total
{{ total_price | money_with_currency }}
Du sparte {{ total_discounts | money }}
Avrunding av kontanter
{% if net_transaction_amount_rounding < 0 %}-{% endif %} {{ net_transaction_amount_rounding | abs | money }}
Totalt betalt i dag
{{ transaction_amount | plus: net_transaction_amount_rounding | money_with_currency }}
Totalsum som forfaller ved levering
{{ next_amount_due | money_with_currency }}
Totalbeløp som forfaller ved oppfyllelse
{{ next_amount_due | money_with_currency }}
Totalt forfalt beløp {{ due_at_date }}
{{ next_amount_due | money_with_currency }}
Du sparte {{ total_discounts | money }}
Total
{{ total_price | money_with_currency }}
Du sparte {{ total_discounts | money }}
Avrunding av kontanter
{% if net_transaction_amount_rounding < 0 %}-{% endif %} {{ net_transaction_amount_rounding | abs | money }}
Betalt
{{ gateway | capitalize }}
{{ transaction_amount | plus: net_transaction_amount_rounding | money_with_currency }}
Totalt betalt i dag
{{ transaction_amount | plus: net_transaction_amount_rounding | money_with_currency }}
{% unless payment_terms %}
{% if transaction_size > 1 or transaction_amount < total_price %}
{% for transaction in transactions %}
{% assign amount_rounding = 0 %}
{% if transaction.amount_rounding != 0 %}
{% assign amount_rounding = transaction.amount_rounding %}
{% endif %}
{% if transaction.status == “success” and transaction.kind == “capture” or transaction.kind == “sale” %}
{% if transaction.payment_details.gift_card_last_four_digits %}
{% capture transaction_name %}Gavekort (som slutter med {{ transaction.payment_details.gift_card_last_four_digits }}){% endcapture %}
{% elsif transaction.payment_details.credit_card_company %}
{% capture transaction_name %}{{ transaction.payment_details.credit_card_company }} (slutter med {{ transaction.payment_details.credit_card_last_four_digits }}){% endcapture %}
{% else %}
{% capture transaction_name %}{{ transaction.gateway_display_name }}{% endcapture %}
{% endif %}
{% endif %}
{% if transaction.kind == ‘refund’ %}
{% if transaction.payment_details.gift_card_last_four_digits %}
{% assign refund_method_title = transaction.payment_details.type %}
{% elsif transaction.payment_details.credit_card_company %}
{% assign refund_method_title = transaction.payment_details.credit_card_company %}
{% else %}
{% assign refund_method_title = transaction.gateway_display_name %}
{% endif %}
{% endif %}
{% endfor %}
{{transaction_name}}
{{ transaction.amount | plus: amount_rounding | money }}
Refusjon
{{ refund_method_title | replace: '_', ' ' | capitalize }}
- {{ transaction.amount | plus: amount_rounding | money }}
{% endif %}
{% endunless %}
{% 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 %}
Fraktmetode
{% if delivery_promise_branded_shipping_line %}
{{ delivery_promise_branded_shipping_line }}
{% else %}
{{ shipping_method.title }}
{% endif %}
Hvis du har noen spørsmål, kan du svare på denne e-posten eller kontakte oss på {{ shop.email }}
{%- if billing_address.country_code == ‘DE’ or billing_address.country_code == ‘DK’ -%}
{%- if shop.terms_of_service.body != blank -%}
{{ shop.terms_of_service | attach_as_pdf: “Vilkår for bruk” }}
{%- endif -%}
{%- if shop.refund_policy.body != blank -%}
{{ shop.refund_policy | attach_as_pdf: “Retningslinjer for angrerett” }}
{%- endif -%}
{%- endif -%}
DaisyVo
January 13, 2025, 2:14pm
10
Yep. Thank you so much.
Please allow me some time to check it here first @silenceclothing
DaisyVo
January 13, 2025, 2:33pm
11
@silenceclothing
Please add the code below above the tag like this:
Here is the code you should use there:
Result:
Please let me know if it works. Thank you!
Best,
Daisy - Avada Support Team.
Thank you so much! i have tried so many codes that have not worked