Off Canvas Menu Too Low In The Mobile Version - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Off Canvas Menu Too Low In The Mobile Version

EZ

Ervin Zatko

Template 3 years ago

Hello

I have a problem after upgrade with off canvas menu in joomshaper templetes. It is too far down in mobile verion. I find posts with this problem, but you dont write a solution.

Please write here how I correct it, where is the problem. Please help me ASAP!

Ervin

0
13 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #59104

Ahoj,

problem is after update to new Helix3 - for all templates you have to use this same fix custom CSS code.

@media screen and (max-width: 680px) {
#sp-header > container > .row {flex-wrap: wrap; display: flex;}
#sp-logo  {flex: 0 0 40%; max-width: 40%;}
#sp-menu {flex: 0 0 59%; max-width: 59%;}
}

Then it will be fixed. Remember that your sites have JCH_Optmize compression & cache.

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #59111

Hi there!

If I may. I have checked the first site... Please use the following code in your custom CSS:

#sp-mobile-header .row {
    display: flex;
}
#sp-menu2{
    flex: auto;
}

Hope this will solve this issue for you...

Best Regards

0
EZ
Ervin Zatko
Accepted Answer
3 years ago #59114

Sorry, but it dont help. Now the menu is in center, and not in one row with logo. Any solution?

0
EZ
Ervin Zatko
Accepted Answer
3 years ago #59115

Rashida Rahman. Thank you, your solution work for one site, but for otherit dont work.

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #59116

As your sites have different header structure and ID's, that is why code varies.

For your second site this is the code:

#sp-top-bar .row, #sp-header .row {
    display: flex;
}
@media only screen and (max-width: 767px){
#sp-header {
    top: 80px!important;
}
}
#sp-menu {
    flex: auto;
}

Sorry for mentioning your site URL, removed now!

0
EZ
Ervin Zatko
Accepted Answer
3 years ago #59117

Sorry, yes I change IDs and it work. Thank you very much!

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #59120

You are welcome!

For third site the following code seems enough:

#sp-header .row {
    display: flex;
}
0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #59121

I have checked the fourth one just now. It seems you have already added some code there.

Only the following may help the offcanvus position better:

#sp-menu {
    flex: auto;
}
0
EZ
Ervin Zatko
Accepted Answer
3 years ago #59126

In some I have now problem. The position is not on the right, I dont know why. Please chceck it.

And on the 3. site I set hide fot positions top1, top2 in mobile, but it dont help. Why?

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #59128

For third one if you do not want the topbar then use this:

@media only screen and (max-width: 767px){
#sp-top-bar {
    display:none;
}
}

And remove the following code snippet that I have given you earlier:

@media only screen and (max-width: 767px){
#sp-header {
    top: 80px!important;
}
}
0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #59131

For second one your menu 2 portion gets center alignment as it has col6 class, so please use this:

#sp-menu2 .sp-column {
    justify-content: end;
}

For the first one you may forgot to apply:

#sp-menu {
    flex: auto;
}

I have mentioned in my earlier reply though.

Best Regards

0
EZ
Ervin Zatko
Accepted Answer
3 years ago #59199

Perfect :) Thank you Rashida Rahman for your help.

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #60738

You are always welcome:)

0