I want to add a new line in announcement bar (Venture)

Solved
PartyPro
Tourist
5 0 1

I want to add a new line (enter) in the announcement bar so that my announcement would be in two lines.

I tried <br> , but that doesn't seem to do the trick.

 

Does anyone know how to add a new line in the announcement bar?

 

Preview:

example.png

0 Likes
Wahab_Ahmad
Shopify Partner
693 110 161

Hello @PartyPro, Share store link for better solution 

PartyPro
Tourist
5 0 1
Wahab_Ahmad
Shopify Partner
693 110 161

This is an accepted solution.

Hello @PartyPro,

 

1. Go to Online Store->Theme->Edit code
2. section->header.liquid

 

Search below statement by using ctrl + F

 

section.settings.announcement_text

 

you will find

 

{{ section.settings.announcement_text | escape }}

 

then remove | escape

 

{{ section.settings.announcement_text }}

 

NOW SAVE FILE

 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: wahabahmadghori@gmail.com

 

PartyPro
Tourist
5 0 1

Thank you so much!

 

I can now use <br> in my announcement bar after editing the header.liquid code.

 

I changed

{{ section.settings.promo_bar_text | escape }}

to

{{ section.settings.promo_bar_text }}

 

Thank you again!

 

 

0 Likes
shilocanady
New Member
1 0 0

Hi! Do you know how to get this to correlate and show saved features on mobile. This works for desktop but mobile shows "<br>"

0 Likes