Shopify themes, liquid, logos, and UX
Hello,
I have a problem with the announcement bar of my shopify store.
I wanted at first to have an announcement bar with a black background and a white writing, however as you can see it on the picture above there is only a thin line that is black and not the whole background. On mobile it's even worse since not only the whole background of the announcement bar isn't completely black, but the writing isn't centralized in the annoucement bar and exceeds on the video :
As you know this doesn't look very professional and may scare the clients away. If maybe someone could help me put the white writing on the black background,and get the wirting centralized in the phone view, i would be very thankful.
Here is my shopify store link : https://blenderpure.com/
Let me know if you need anymore information.
Many thanks to anyone who will provide with any type of help.
Best reguards.
Solved! Go to the solution
This is an accepted solution.
Hi @HHloot
Check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.utility-bar {
height: unset;
}
.announcement-bar * {
color: white !important;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hello @HHloot it's because the bar needs to let the height be automatic , or given more height as a rule.
.announcement-bar-section {
height: 30px;
}
.announcement-bar__message {
color: white;
}
Then there's an additional whitespace gap caused by the next section having a margin from somewhere that would need to be fixed or overridden.
.section-header {
margin-bottom: 0px;
}
Contact [email protected] 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
This is an accepted solution.
Hi @HHloot
Check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.utility-bar {
height: unset;
}
.announcement-bar * {
color: white !important;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
It worked ! Thank you so much for your time and help !
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024