Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 13d 03h 49m 21s
Claim 50% off
Solved Templates

I have 2 issues - button in module (displaying on menu) and menu wrapping around

Asked by Dina Abramson 1 year ago Last activity 1 year ago

Hi,

  1. My customer wants a button on the menu linking to an external portal. button is in a module. Looks great on desktop. Not on mobile.
    Question: is there a way to have a button display on the off-canvas menu when on a mobile device?

  2. My menu is wrapping around because the customer wants his logo to be larger. I have not been able to successfully reduce the space so that the off-canvas menu does not wrap around.

https://awdtest2.com/images/menu_issues.png

I have tried a few things to no avail.

Your assistance is greatly appreciated.

Accepted answer

Marked as the solution
Ziaul Kabir Staff

Hello,

To make your portal button available in menu offcanvas, I have duplicate your menu portal site module and rename it to Menu-portal-btn-mobile and assign position to offcanvas, Please, Check screenshots,

Then I add this css in template options -> Custom code -> Custom css:

@media (max-width: 991px){
.offcanvas-menu .offcanvas-inner ul.menu>li ul.menu-child {
    display: block;
}
#sp-header #sp-menu .sp-module {
  display: none !important;
}
  header#sp-header .container, header#sp-header .container-inner {
    width: 100%;
    margin: 0;
    padding: 0 20px;
    max-width: 100%;
}

  .offcanvas-menu .offcanvas-inner {
    display: flex;
    flex-direction: column-reverse;
}

  .offcanvas-menu .offcanvas-inner div.mb-4 {
    order: -1;
}
  .sp-module.portal-mb a {
    display: block !important;
}
  .sp-module .menu,
  .offcanvas-menu .offcanvas-inner div:nth-child(2){
    margin-bottom: 0 !important;
}

}

Thanks

5 more replies

Ziaul Kabir Staff

Hello Dina,

Thank you for reaching out to us. Could you please check now? I have created another module to display the portal button on the off-canvas menu and made some adjustments to the CSS in your template under css -> custom.css.

If you need any further assistance, feel free to let me know.

Thanks,

Dina Abramson Asked this

Thank you so much, it is perfect.

Ziaul Kabir Staff

You are welcome.

Dina Abramson Asked this

For some reason, my header is again displaying the portal button on a mobile header.

the only thing that changed, was i updated pagebuilder this morning.

can you please show me the css you added?

thank you.

Ziaul Kabir Staff

Hello,

Could you please check it in a different browser or in incognito mode? I see that it’s working fine on my end.

Thank you.

Dina Abramson Asked this

Hi, I don't know what is going on, but the button and module is not visible on off-canvas and I know it was there. I don't know how you added it to the off-canvas menu, and I'm trying to figure out what you did. Can you please show me any css you added, because i don't see it in custom.css

I have to do this on another site, and I can't figure out what you did.

Thanks and I'm sorry for the bother. i'm added the new site i have to repeat the process on.

Dina Abramson Asked this

thank you for your assistance. It is very much appreciated.

  • Dina
Ziaul Kabir Staff

You are welcome.

Log in to reply.