Shopify themes, liquid, logos, and UX
Hi all,
I need advice on how to make changes to the header and announcement bar height on debutify theme.
I want to make the heights smaller on mobile, I also want to move my logo from centre to being positioned on the left hand side on mobile.
site: www.buydigi.com.au
Solved! Go to the solution
This is an accepted solution.
@Nickloz by left-hand side, I'm assuming you want the logo right next to the menu button, is that correct?
In that case, you can add this code at the end of your CSS file (Themes -> Edit code -> Assets -> theme.scss.css):
@media screen and (max-width: 769px) {
.header-grid .grid__item:first-child {
width: auto !important;
}
}
This is an accepted solution.
Please add css code your css file .
@media screen and (max-width: 769px){
.site-header {height: 40px !important;}
}
Thanks!
This is an accepted solution.
Please add this css
@media screen and (max-width: 769px){
.announcement-section .wrapper {position: relative;}
#announcement .rte {margin-bottom: 10px;}
#announcement { height: 25px;}
}
This is an accepted solution.
Add this code
@media screen and (max-width: 769px){
#announcement p {font-size: 12px !important;}
}
This is an accepted solution.
@Nickloz you can add this code to your CSS file:
@media screen and (max-width: 769px) {
.site-header__logo .mobile-logo {
margin-left: -15px;
}
}
Unfortunately, there is no simple solution for this. It would need customization.
sorry for that issue
i can' see this view
what do you need?
@KetanKumar I want to make the height of the announcement bar and the height of the header smaller on mobile (highlighted by the red lines). But I don't want them to change when on desktop view.
This is an accepted solution.
Please add css code your css file .
@media screen and (max-width: 769px){
.site-header {height: 40px !important;}
}
Thanks!
@dmwwebartisan thank you, the header size has decreased but the announced bar at the top (blue) has stayed the same. Is there any code I can put in so I can reduce the size of that too or edit it to whatever I like?
This is an accepted solution.
Please add this css
@media screen and (max-width: 769px){
.announcement-section .wrapper {position: relative;}
#announcement .rte {margin-bottom: 10px;}
#announcement { height: 25px;}
}
@dmwwebartisan thank you so much for that, you've been a great help! Lastly, do any values in that code change the announcement bar font size? or will I need another piece of code for that (mobile only).
This is an accepted solution.
Add this code
@media screen and (max-width: 769px){
#announcement p {font-size: 12px !important;}
}
This is an accepted solution.
@Nickloz by left-hand side, I'm assuming you want the logo right next to the menu button, is that correct?
In that case, you can add this code at the end of your CSS file (Themes -> Edit code -> Assets -> theme.scss.css):
@media screen and (max-width: 769px) {
.header-grid .grid__item:first-child {
width: auto !important;
}
}
@Nickloz glad it worked! Please accept my answer as the solution.
@g33kgirl I’ve recently updated my logo to a vector file and I love the way it’s looking now, but the logo is now skewed to the right a bit, can I update the code you provided me to push it a bit more to the left?
This is an accepted solution.
@Nickloz you can add this code to your CSS file:
@media screen and (max-width: 769px) {
.site-header__logo .mobile-logo {
margin-left: -15px;
}
}
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024