New Shopify Certification now available: Liquid Storefronts for Theme Developers

How to remove/lessen border on header in Dawn 2.0

Solved
lextui
Excursionist
24 0 7

How do I remove or lessen the border (white space) on the header using the Dawn 2.0 theme? There's a gap between the header and banner image. 

 

My store URL is https://souvenir-the-store.myshopify.com/ while the password is cookiebutter. Thank you. 

Screen Shot 2022-02-10 at 09.48.09.png

Accepted Solution (1)
Nick_Marketing
Shopify Partner
1487 336 459

This is an accepted solution.

Try adding this code to the bottom of base.css

#MainContent {
  margin-top:0px;
}
Nick | Ecommerce & Marketing Technology Consultant | Toronto, CANADA
- For consulting work availability, please send me a Private Message or submit a ✍️Contact Form.
- For FREE Shopify Tutorials, Subscribe to my YouTube channel (▶️ Ecommerce TV).

View solution in original post

Replies 5 (5)
Nick_Marketing
Shopify Partner
1487 336 459

This is an accepted solution.

Try adding this code to the bottom of base.css

#MainContent {
  margin-top:0px;
}
Nick | Ecommerce & Marketing Technology Consultant | Toronto, CANADA
- For consulting work availability, please send me a Private Message or submit a ✍️Contact Form.
- For FREE Shopify Tutorials, Subscribe to my YouTube channel (▶️ Ecommerce TV).
AvadaCommerce
Shopify Partner
3879 839 925

Hi @lextui 

Please follow these steps to remove the white space under your header:

1. Go to your Shopify Admin > Themes > Edit code > Assets > Open base.css
2. Find  ID #MainContent and change margin-top to 0px or a more suitable px you want. 

#MainContent {
    margin-top: 0px;
}


If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any questions!

banned
premadestores
Shopify Partner
134 15 36

Hii @lextui 

Welcome to the Shopify community!
Thanks for your good question.

 

Go to Online Store->Theme->Edit code
2. Asset->/theme.css ->paste below code at the bottom of the file.

#MainContent {

margin-top:0px !important;

}

 

If this post is helpful for you Kindly Like and Accept this as a solution.

If you Want to modify or Customize your theme ,
Hire us | We can help you & guide you how to reach to your potential customers & how to increase brand presence, engagements and sales for your business
Email us: info@premadedropshippingstores.com or check premadedropshippingstores.com
infoatcodelab7
Shopify Partner
593 141 139

@lextui 

Please Add this CSS to your base.css file

Assets > base.css

main#MainContent {
    margin-top: 0 !important;
}

Thank You!

 

Want to modify or develop new website, Hire us.
If helpful then please Like and Accept Solution .
Email: info@codelab7.com
jewellerystore1
Excursionist
46 0 4

I am having the same issue please help! The code above didn't work for me. 

I am trying to remove the white space above the banner image, it is only there in the mobile view. https://n19ziw94my3fo62m-74563387678.shopifypreview.com

 

Screen Shot 2023-10-13 at 10.46.25 pm.png