Hi! I would like to reduce my header size in the Dawn theme. I am only allowed to reduce it to 50px but I will like to go smaller to about 15px. Any help on how to do that? Also, I will like for my logo size to stay the same
Hello Dreadamu,
Welcome to Shopify community.
There are two ways you can reduce the height of header. I will start with the easier one first.
First Method:-
-
Click customize next to your published theme.
-
Select the header at the top of the page.
-
On left-side window go to very bottom and adjust padding as per your liking.
Second Method:-
Note:-Always back up your theme before doing any code changes.
-
Click the three dots next to customize and select edit code.
-
From the left panel window Go to Assests → base.css.
-
At the bottom of file paste below code (change the px as required).
.header-wrapper {
height: 15px !important;
}
Thank you.
Thank you! The code worked
Glad to help you.
Please like and accept the answer if your issue is resolved.
Thank you.
Hello @dreadamu
I would like to give you the recommendation to support you so kindly follow steps below:
- Go to your Online store > Themes > Edit code
- Open your theme.liquid file
- Paste the below code before
I hope the above is useful to you.
Best regards,
GemPages Support Team