Compatibility of Solo theme with Menu block module

Created on 28 July 2025, 6 days ago

Hi

If I combine the Solo theme and the Menu block module I have a problem. For example, if I put a menu in the sidebar, the menu items will not be arranged one below the other but next to each other.

I see in this discussion

https://www.drupal.org/project/solo/issues/3459499 💬 Improved Menu Functionality and Template Updates for Drupal Solo Theme: Horizontal, Sidebar, and Responsive Menus Fixed

that others have a similar problem when combining the Solo theme and Menu block modules.

Does anyone know a solution for this problem?

I am using Drupal Version 10.4.6.

Best regards

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @cehjan
  • 🇺🇸United States flashwebcenter Austin TX

    Hello,

    The Solo theme includes custom Twig templates for sidebar regions. However, the menu_block module overrides Drupal's default theme suggestions, which is why your region-specific template (e.g., menu--sidebar-second.html.twig) wasn't being used as expected.

    To address this, I’ve updated the theme suggestion alter hook to work around the module’s behavior. I’ve tested it locally and confirmed that the custom sidebar template is now correctly applied.

    Please feel free to download the latest dev version , test it on your setup, and let me know if everything works as expected.

    Best wishes,
    Alaa

  • Thanks for the quick response. I will try it.

    Nest regards, Jan

Production build 0.71.5 2024