asulibraries / unity_header

A Drupal 8/9 compatible module to apply the Unity Design System header/footer. See README for assumptions and customization needed.
MIT License
0 stars 1 forks source link

ASU Unity Design System header/footer

A Drupal 8/9 compatible module to apply the Unity Design System header/footer.

Assumptions

Important: Per Bootstrap and Web Standards 2.0 sites are only allowed 2 levels of links in the menu.

Configuration

Menu configuration

Because of the 2-level limit and to get the desired layout, the module requires menu elements to be set up a certain way.

Note: At this time, the modules supports only 1- or 2-column dropdowns.

Block placement and configuration

ASU Global Menu block into the Top Header region.

Main navigation block into the Header region. Check the "Expand all menu items" box in the block settings for the main navigation block.

Universal Footer block into the Footer fifth region.

Uncheck the "Display title" box on all of these blocks.

Troubleshooting

If the styles are not being applied to the menu, check to make sure the Main navigation block has the correct machine name/ID.

If the block was added to another theme and then added to your subtheme, the block ID may be [subtheme]-mainnavigation instead of mainnavigation.

Delete the block from all of the themes where it appears, then add it to your subtheme's block page again. It should have the correct ID.