How To Make The Menu Responsive And How To Change The Page Width - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

How To Make The Menu Responsive And How To Change The Page Width

MH

Matt Hunt

Template 4 years ago

How do you make the menu a bit more responsive? I've got the menu on a wide screen, looking great and when the screen gets down to 1024px it coverts to the off-canvas menu, perfect.

But on those middle screen widths, the menu is pushed below the header and is wrapped on two lines. How can I get the menu to convert to the off-canvas menu sooner?

I've tried this code with no luck:

@media only screen and (max-width: 1024px) and (min-width: 1024px) {
    .sp-megamenu-parent {
        display: none !important;
    }
    #offcanvas-toggler {
        display: block !important;
    }
}
0
9 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 4 years ago #41026

Hi,

Could you please give me your site URL so that I can check?

-Regards

0
MH
Matt Hunt
Accepted Answer
4 years ago #41027

Thanks! It is https://a2zpreview4.com/

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 4 years ago #41031

Let me clear first do you want it like this position?

https://prnt.sc/1y2ephj

0
MH
Matt Hunt
Accepted Answer
4 years ago #41032

Yes please, top & center on the dark background

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 4 years ago #41179

Hi,

Use this custom css

@media (min-width: 1024px){
div#sp-menu{
bottom:160px;   
}
}

Note: Path towards custom CSS: Extensions>Templates>Styles> Click on your current default template name then choose Template Options. Then find custom CSS within the custom code.

0
Pavel
Pavel
Accepted Answer
4 years ago #41194

Hi. Mehtaz it's wrong solution. You still can not find the reasons and struggle with a consequence with the help of terrible crutches.

Correct solution

  1. Hide logo column for desktop

@media (min-width: 992px) {
    #sp-logo {
        display: none;
    }
}
  1. Reduce font size
@media (max-width: 1399px) {
    .sp-megamenu-parent>li>a,
    .sp-megamenu-parent>li>span {
        font-size: 19px;
    }
}
@media (max-width: 1199px) {
    .sp-megamenu-parent>li>a,
    .sp-megamenu-parent>li>span {
        font-size: 16px;
    }
}

If you want to turn on the offcanvas sooner

@media (max-width: 1024px)  {
    .sp-megamenu-parent {
        display: none !important;
    }
    #offcanvas-toggler {
        display: flex !important;
    }
}
0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 4 years ago #41201

Wow thanks Pavel for this solution.I do not think like that. Thanks anyway

0
NV
N.E. Vermaas
Accepted Answer
6 months ago #193137

I have the same problem. Could you help me with this too. I would like to have have the menu removed and the off-screen menu turned on when zooming into 200%. Here is the website https://getinmotion.nl Many thanksin advance for your answer.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 6 months ago #193262

HI Vermaas,

This is too old post, could you please create a new forum post about your issue? Our team will help you.

0