NEED HELP!! How to add padding to mobile header Debut theme

New Member
2 0 0

Hi everyone,

I NEED HELP!!

I have been trying everything but cannot seem to figure out how to solve this. My desktop view looks great, just my mobile view is not good yet (and as most of my customers will use their mobiles, this is quite problematic). 

I want to add padding in between the header (logo/search button/cart button/menu button) and the announcement bar. Now they are almost attached. My website is www.miisha.nl. So to be clear, my problem is only with the mobile view. 

Can someone help me? Thanks so much in advance!!

Misha

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
588 56 117

Hey there, Misha!

Bo here from Shopify Support.

That is a really great question and I can see why you would want to add that bit of padding. To do so you will need to follow these steps:

  • Go to Online Store > Actions > Edit Code.
  • Open Assets Folder > theme.scss.liquid and scroll to the very bottom of the file.
  • Add the following code at the very end:
@include media-query($small) {
.site-header {
    padding-top: 10px;
}
}
  • Click Save.
  • If you would like more padding than this you can adjust the number of px in the code accordingly.

NB When editing the CSS of your theme it is always a good idea to duplicate your theme first and making the changes on the duplicate. This will prevent any errors from occurring on your live site. We also recommend adding CSS to the bottom of the file as opposed to altering the preexisting code. The new code will overwrite the previous code.

Let me know how this goes and if there is anything else I can assist you with, I'm happy to help!

All the Best,
Bo

Bo | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes