Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: resizing header logo in Dawn theme

Solved

How to resize header logo in Dawn theme after code edits?

MPEK
Excursionist
16 0 4

I am having trouble resizing my header logo in the Shopify - Dawn theme (ver. 7.0.1) after editing some codes that brought the social media icons from the Footer to the Header.  Prior to the edit, the logo displayed perfectly.  But after the edit in which I simply just replaced codes that I found from here, https://community.shopify.com/c/technical-q-a/the-dawn-theme-how-to-add-social-media-icons-to-the-he..., the size of the logo for both Desktop and Mobile all changed to just one universal size, no matter how much I adjusted the custom logo width.  Please help, thank you!

 

mypekicks.store

password: mypekicks

Accepted Solution (1)

Litos
Globetrotter
688 169 149

This is an accepted solution.

Hi @MPEK,

Go to Assets > base.css and paste this at the bottom of the file:

 

@media screen and (min-width: 990px) {
  .header--middle-left {
    grid-template-columns: 1fr auto 1fr !important;
  }
}
@media screen and (max-width: 989px) {
  .header--mobile-left {
    grid-template-columns: auto 1fr 1fr !important;
  }
}

 

Hope it helps!

 

Litos - Shopify Development Service Provider
Need to develop or customize your Shopify store, feel free to contact us here.

View solution in original post

Replies 6 (6)

KetanKumar
Shopify Partner
37409 3659 12113

@MPEK 

oh sorry for that issue can you please  try this code
1. Go to Online Store->Theme->Edit code
2. Asset->/base.css ->paste below code at the bottom of the file.

.header__heading-logo {max-width: 100px;}

 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

BSS-Commerce
Shopify Partner
3477 463 547

Hi @MPEK ,

You can add the CSS at the end of assets/base.css . file

.header__heading {
   width: 160px !important;
}

//màn hình điện thoại
@media only screen and (max-width: 768px) { 

.header__heading {
   width: 160px !important;
}

}

 

Let me know if it works for you.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
MPEK
Excursionist
16 0 4

Only the Home Page works, but not the rest of the pages when I go into either Products or any other pages...

MPEK
Excursionist
16 0 4

Actually, only the Home page works, the rest of the pages still have the enlarged icon.  How do I ensure that all of the pages in the website have the small icon?

Litos
Globetrotter
688 169 149

This is an accepted solution.

Hi @MPEK,

Go to Assets > base.css and paste this at the bottom of the file:

 

@media screen and (min-width: 990px) {
  .header--middle-left {
    grid-template-columns: 1fr auto 1fr !important;
  }
}
@media screen and (max-width: 989px) {
  .header--mobile-left {
    grid-template-columns: auto 1fr 1fr !important;
  }
}

 

Hope it helps!

 

Litos - Shopify Development Service Provider
Need to develop or customize your Shopify store, feel free to contact us here.
MPEK
Excursionist
16 0 4

This works great, now every page has the correct logo size, thank you Litos!