How to add links in announcement bar message (DAWN)

How to add links in announcement bar message (DAWN)

NOT1
Shopify Partner
272 2 117

Like this get it now will only have the link
Screenshot 2024-09-08 093449.png

Reply 1 (1)

heddykhalifa
Shopify Partner
150 12 34

Hi NOT1, 

 

Heddy from Gameball here. 

To add links in your announcement bar for the Dawn theme, you’ll need to make some adjustments in the theme code. Here’s a simple way to do it:

1. In your Shopify Admin, go to Online Store > Themes, and next to the Dawn theme, click Actions > Edit code.
2. Find the announcement-bar.liquid file under Sections.
3. Look for the announcement text area in the code, and wrap the text you want to link in HTML anchor tags. For example:


<a href="https://yourlink.com">Your announcement message</a>

4. Save the changes.

This should make the text in the announcement bar clickable and linked to whatever URL you want. If you want multiple links, just add more anchor tags.