increasing height of header in mobile view - dawn theme

Solved

increasing height of header in mobile view - dawn theme

DSS5
Explorer
77 0 24

hi guys, can someone help to increase the height of header in mobile view only. as in screenshot below. logo is looking very tight on top and bottom margin... in desktop view its ok but in mobile it is not great. is there anyway to  creat a gap between top and bottom margin in Header Logo?

 

url - deshoeshop com

Screen Shot 2023-10-22 at 7.42.32 pm.png

Accepted Solution (1)

fadi_yousif
Shopify Partner
345 43 67

This is an accepted solution.

Is this good?

Screenshot from 2023-10-22 14-33-41.png

Navigate to the code editor: Online store --> Themes --> Edit code --> assets --> base.css. Add the following to the end of the file:

 

@media screen and (max-width: 990px) {
  header.header.header--top-center.header--mobile-center.page-width.header--has-menu.header--has-social {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

 

Freelance Shopify Developer


Did I help? Leave a tip!

View solution in original post

Replies 2 (2)

fadi_yousif
Shopify Partner
345 43 67

This is an accepted solution.

Is this good?

Screenshot from 2023-10-22 14-33-41.png

Navigate to the code editor: Online store --> Themes --> Edit code --> assets --> base.css. Add the following to the end of the file:

 

@media screen and (max-width: 990px) {
  header.header.header--top-center.header--mobile-center.page-width.header--has-menu.header--has-social {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

 

Freelance Shopify Developer


Did I help? Leave a tip!

Made4uo-Ribe
Shopify Partner
8220 1972 2412

Hi @DSS5 

Try 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:

 

@media only screen and (max-width: 989px){
header.header.header--top-center.header--mobile-center.page-width.header--has-menu.header--has-social {
    padding: 20px;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1697976956101.png
  • Note: You can decrease or Increase the size of the padding. 
If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.