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.
The Site Map Menu produces somewhat "confusing" code.
I created a menu called "Footer Menu" and enabled the sitemap module (for main menu and footer menu).
On the /sitemap page, i see this code inside "#site-map .site-map-menus":
<div class="site-map-box-menu site-map-box-menu-menu-footer-menu site-map-box">
[structure of footer menu]
</div>
<div class="site-map-box-menu site-map-box-menu-menu-footer-menu site-map-box-menu site-map-box-menu-main-menu site-map-box">
[structure of main menu]
</div>
The main menu ".site-map-box" also has the ".site-map-box-menu-menu-footer-menu" class!
Is there any "class list" that doesn't get cleared?
And by the way, how do I change the order of the menus?
Comment | File | Size | Author |
---|---|---|---|
#1 | site_map_css_class-1477940-1.patch | 532 bytes | daffodilsoftware |
Comments
Comment #1
daffodilsoftware CreditAttribution: daffodilsoftware commentedHi flokli
I have created a patch for this Please test it and provide your feedback on the same
Comment #2
daffodilsoftware CreditAttribution: daffodilsoftware commentedHi flokli
Were you able to test the patch? if yes then please provide feedback
Comment #3
daffodilsoftware CreditAttribution: daffodilsoftware commentedComment #4
daffodilsoftware CreditAttribution: daffodilsoftware commentedComment #5
flokli CreditAttribution: flokli commentedfixes the bug for me.
Comment #6
gurvan CreditAttribution: gurvan commentedthe patch work for me too, it can be ported
Comment #7
john.oltman CreditAttribution: john.oltman commentedIn the new 7.x-1.1 release