Replace Off Canvas Menu With Desktop Menu In Mobile/tablet View - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Replace Off Canvas Menu With Desktop Menu In Mobile/tablet View

W

Walter

Helix Framework 4 years ago

A client wants the OffCanvas menu (the 3 lines or harmburger menu) to be replaced with desktop menu when viewing the website in mobile / tablet mode. He simply wants the same menu displayed in desktop mode to appear in mobile/tablet mode. How can i do that? I am using JS politicas template.

Walter

0
9 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #22070

Yes, it's possible, but request using serveral lines of custom CSS. Start from this:

#sp-menu {display: block !important; background:#0A700A;}
#sp-menu .sp-megamenu-parent 
{ display: block !important;}

@media (max-width: 990px) {  
.sp-megamenu-parent > li > a, 
.sp-megamenu-parent > li > span {
    display: inline-block;
    padding: 0 12px;
    line-height: 26px;}
 body.ltr #offcanvas-toggler.offcanvas-toggler-left {
    display: none !important;}
}
1
Ariba
Ariba
Accepted Answer
Support Agent 4 years ago #22065

Hello

Thank you for your query. Can you provide the site URL please, if possible?

0
W
Walter
Accepted Answer
4 years ago #22066

Alright.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #22071

and if you don't use logo for mobile view - just hide that column from template options - Layout - "Logo" column options.

0
W
Walter
Accepted Answer
4 years ago #22074

@ Paul Frankowski The custom CSS worked and thanks a lot on that. As you indicated in the second post to hide the "Logo" column option, I think I have to disable the mobile view logo so I get only the menu item displayed well. But I am unable to find logo column option in the JS Politicas template. When I got template options - Layout Builder (has Layout Builder in this case instead of just Layout), nothing is there. When can I find it.

0
Ariba
Ariba
Accepted Answer
Support Agent 4 years ago #22077

Hello

Use the following code in custom css section to hide the logo

@media (max-width: 991px) { 
    #sp-logo {
        display: none; !important;
  }
}
1
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #22082

I forgot that some templates has built-in/preset header, and in theory you could rebuild header with custom one.... ...anyway solution delivered by @Ariba - should help you by now.

You're welcome.

1
W
Walter
Accepted Answer
4 years ago #22124

@ Ariba and Paul. Thank you so much. You have been very helpful.

0
Ariba
Ariba
Accepted Answer
Support Agent 4 years ago #22140

You are most welcome.

0