Add a button in announcement bar - Dawn template

Add a button in announcement bar - Dawn template

Supersonic89
Visitor
1 0 0

I'm using Dawn template, and I want to add a customised button in announcement bar - Dawn template. This button should contains text and put in the left hand side. I know i need to use code to achieve this, but dont know how exactly write them.

 

Also: can you also let me know how to add a customised button in Header as well?

2024-01-03_205508.jpg

Reply 1 (1)

PaulNewton
Shopify Partner
7536 666 1595

This is an advanced customization beyond the scope of the forums as it's two code areas and layout styling, hire someone if your unfamiliar with code.

💣Always backup themes before changing files.

Crudely that is the file sections/announcement-bar.liquid

And to be at the end a button would be put around line 217 before one of the closing </div>'s.

example: https://github.com/Shopify/dawn/blob/main/sections/announcement-bar.liquid#L217 

similarity for the header https://github.com/Shopify/dawn/blob/main/sections/header.liquid#L338 

Test thoroughly as you are cramming more things into areas not designed for them.

 

If you need this customization then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

 

Good Hunting.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org