Hi there,
I am currently using the sense theme and would love to have two announcement bar ,problem is I would like to add the second one below the header.I was checking the forum and saw one solution for the dawn theme that i tried using it worked partially, it seems to add another annoucementment bar along with the original that now moves across the screen below the header it says “your announcement message goes here” however the announcement bar is not there.
here is the code that i added to my header. liquid file.tried adding it before the and after but still had the same outcome
your annoucement message goes here
.announcement-bar {
overflow: hidden;
white-space: nowrap;
width: 100%;
animation: announcement-bar 20s linear infinite;
}
.announcement-bar p {
display: inline-block;
padding: 20px;
background: #f2f2f2;
color: #333;
font-size: 18px;
font-weight: bold;
}
@keyframes announcement-bar {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-100%);
}
}
Hi @sam163
You can do this by following the instructions below.
- Go to Online store > Themes > Click the three dots on the theme you want to edit > Edit code
- Open the announcement-bar.liquid file
- Replace the code shown below with the code provided.
"presets": [
{
"name": "Announcement bar"
}
]
When you go to Customize, add a section. You should see the Announcement bar as shown in the image below.
Hello,
i tried adding the code but i am getting an error .invalid JSON in tag schema