- Issue created by @fionamorrison23
- 🇦🇺Australia RichardGaunt Melbourne
Josh is working on a fix:
1. Move the menu theming code into a helper _civictheme_preprocess_primary_navigation_menu and _civictheme_preprocess_footer_menu:
2. Add theme settings to define the primary navigations and the footer navigation menus
3. Update the menu name check to check for these theme settings if ($menu_name === 'THEME_SETTING')
4. Add update hook to add new theme setting or at least at a default value for expected values in this code above - Assigned to joshua1234511
- 🇦🇺Australia RichardGaunt Melbourne
@alan.cole Can you please review this and let me know if it solves your problem?
- 🇮🇳India joshua1234511 Goa
https://github.com/civictheme/monorepo-drupal/pull/1350
Modified the preprocess to set theme based on theme hook set in configuration.
Steps to Create and Style a New Menu in CivicTheme
Step 1: Create a New Menu in Drupal
- Navigate to Structure → Menus → Add Menu.
- Enter a Title (e.g., "CivicTheme Sidebar Navigation").
- Add Menu Links as needed.
- Save the menu.
Step 2: Place the Menu in a Block
- Go to Structure → Block layout.
- Click Place Block in the desired region.
- Search for the menu you created and select it.
- Under HTML and Style Options, set the Theme Hook Suggestion to one of the following:
civictheme_primary_navigation
civictheme_secondary_navigation
civictheme_footer
- Save the block placement.
- Assigned to RichardGaunt
- Status changed to Needs review
11 days ago 4:23am 5 May 2025