Header menu acting strange at specific page widths - Dawn Theme

Header menu acting strange at specific page widths - Dawn Theme

MagdalenaBB
Excursionist
27 0 8

Hello! We have a header menu which looks very bad when the page width is between 990 px and 1125 px. The first picture is an illustration of the way it looks, the other picture is the way we intend it to look at all page widths which are 1125px and below. 

Does anyone know how to do this? Thank you in advance 🖤
Website - MAISON MAGDALENA
Password - MaisonMagdalena.222

MagdalenaBB_0-1723659704328.png  - 1

MagdalenaBB_1-1723659770752.png - 2

 

 

Replies 6 (6)

MagdalenaBB
Excursionist
27 0 8

Correction - it needs to be fixed between 990px to 1125px. 

PaulNewton
Shopify Partner
6811 614 1443

@MagdalenaBB  use the 3 dots menu on the rightside of your post to edit the original post with clarification of the better description for the needed outcome.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


PaulNewton
Shopify Partner
6811 614 1443

CSS band-aid using a custom-css setting

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css 

@media screen and (max-width: 1125px) {
 .header {
   display: grid;
   grid-template-areas: 'left-icons heading icons';
   grid-template-columns: 1fr 2fr 1fr;
   align-items: center;
 }
}

 

Otherwise backup theme and modify base.css directly to change the grid rules in around line 2431 , .header--middle-center:not(.drawer-menu) ,  or adjust the media query that works use 990px around line 2045

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


MagdalenaBB
Excursionist
27 0 8

Unfortunately, the custom CSS did not work. Thank you anyways!

PaulNewton
Shopify Partner
6811 614 1443

Per above you may need to  fix the underlying rules in base.css, or try to up the specificity of the rule 

@media screen and (max-width: 1125px) {
 .section-header .header {
   display: grid;
   grid-template-areas: 'left-icons heading icons';
   grid-template-columns: 1fr 2fr 1fr;
   align-items: center;
 }
}

, or force it with "!important",

 

@media screen and (max-width: 1125px) {
 .header {
   display: grid;
   grid-template-areas: 'left-icons heading icons' !important;
   grid-template-columns: 1fr 2fr 1fr;
   align-items: center;
 }
}

 

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


MagdalenaBB
Excursionist
27 0 8

Unfortunately it still does not change, even if I call !important;
There must be some underlying issue in the code overriding it.
Thank your for your time.