Shopify themes, liquid, logos, and UX
Hi.
im wanting to put my phone number and email address in announcement bar, do anyone know how i can do this?
kind regards,
Solved! Go to the solution
This is an accepted solution.
Hello,
You can add links to your site's announcement bar by doing the following:
<p class="announcement-bar__message h5">
{{ block.settings.text | escape }}
{%- if block.settings.link != blank -%}
{% render 'icon-arrow' %}
{%- endif -%}
</p>
6. Remove the '| escape' from the {{ block.settings.text | escape}} line. It should now look like:
<p class="announcement-bar__message h5">
{{ block.settings.text }}
{%- if block.settings.link != blank -%}
{% render 'icon-arrow' %}
{%- endif -%}
</p>
7. Save the changes
8. Back in the theme customizer on your announcement bar's text settings enter the following
Welcome to our store! <a href="tel:1234567890">Call us!</a> <a href="mailto:example@example.com">Email us!</a>
9. The a tags can now be wrapped around any text to create a link. tel: prefix lets the browser know it is a phone number & mailto: let's the browser know it is an email.
This is an accepted solution.
Hello,
You can add links to your site's announcement bar by doing the following:
<p class="announcement-bar__message h5">
{{ block.settings.text | escape }}
{%- if block.settings.link != blank -%}
{% render 'icon-arrow' %}
{%- endif -%}
</p>
6. Remove the '| escape' from the {{ block.settings.text | escape}} line. It should now look like:
<p class="announcement-bar__message h5">
{{ block.settings.text }}
{%- if block.settings.link != blank -%}
{% render 'icon-arrow' %}
{%- endif -%}
</p>
7. Save the changes
8. Back in the theme customizer on your announcement bar's text settings enter the following
Welcome to our store! <a href="tel:1234567890">Call us!</a> <a href="mailto:example@example.com">Email us!</a>
9. The a tags can now be wrapped around any text to create a link. tel: prefix lets the browser know it is a phone number & mailto: let's the browser know it is an email.
Can I left justify it without it being a global setting for all announcements?
In the "Announcement message" field, type in your phone number and email address, like this:
For phone number: "Call us at: 123-456-7890"
For email address: "Email us at: info@example.com"
Click "Save" to save your changes.
Ho ho ho
User | RANK |
---|---|
76 | |
65 | |
64 | |
53 | |
49 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023