Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Menu blocks are defined within nav tags, in the template file \themes\mayo\templates\block--system-menu-block.html.twig the closing nav is missing. This causes menu blocks to nest everything defined after in the same region - other menus, blocks, etc.
The closing </nav> is there but it's furnished by the template that contains the output of \themes\mayo\templates\block--system-menu-block.html.twig. Using Firebug I can see it. I would need to know the set up you used to get that image to explore further.
Fresh install of Drupal 8.0.2, Mayo as theme, nothing else there. The problem seems to present only when menus are placed in sidebar first and second, not in the columns or footer.
Similar issues - I don't understand it, but in case it helps someone identify the issue.
Setup used:
Core 8.0.4
Taxonomy menu 8.x-3.1+1-dev (2016-Jan-14)
MAYO 8.x-1.1
Sidebar 1 Custom text block and system tools menu (or any config I have tried) = nesting of blocks
Sidebar 2 Custom text block and system tools menu = no nesting of blocks
Sidebar 2 Menu produced by Taxonomy Menu and any other block = nesting of blocks
As far as I can tell in both cases closing Nav tags are there, but for some reason the 2nd (and other) blocks are being introduced before the closing tag of the first block
Comments
Comment #2
mermentau CreditAttribution: mermentau commentedThe closing
</nav>
is there but it's furnished by the template that contains the output of \themes\mayo\templates\block--system-menu-block.html.twig. Using Firebug I can see it. I would need to know the set up you used to get that image to explore further.Comment #3
xevina CreditAttribution: xevina commentedFresh install of Drupal 8.0.2, Mayo as theme, nothing else there. The problem seems to present only when menus are placed in sidebar first and second, not in the columns or footer.
Comment #4
johnc_uk CreditAttribution: johnc_uk commentedSimilar issues - I don't understand it, but in case it helps someone identify the issue.
Setup used:
Core 8.0.4
Taxonomy menu 8.x-3.1+1-dev (2016-Jan-14)
MAYO 8.x-1.1
Sidebar 1 Custom text block and system tools menu (or any config I have tried) = nesting of blocks
Sidebar 2 Custom text block and system tools menu = no nesting of blocks
Sidebar 2 Menu produced by Taxonomy Menu and any other block = nesting of blocks
As far as I can tell in both cases closing Nav tags are there, but for some reason the 2nd (and other) blocks are being introduced before the closing tag of the first block
Comment #6
mermentau CreditAttribution: mermentau commentedLooks like there was a closing missing in block--system-menu-block.html.twig. Committed to 8.x-1.x-dev.
Please test.
Comment #7
mermentau CreditAttribution: mermentau commented