Creating a dynamic content spot for navigation | HCL Digital Experience
Create a dynamic content spot mapping to customize the theme for Top, Primary, and Secondary navigation. Change the yourTheme value to the name of your theme.
Procedure
- For primary navigation, add a subcontribution
to the wp_dynamicContentSpots_85 module in your
theme's plugin.xml file. The plugin.xml file
is in the wp_profile_root\installedApps\cell\YourTheme.ear\YourTheme.war\WEB-INF folder.
- Modify the theme.html files for your theme and change the dynamic content spot ID for the primary navigation from 85theme_primaryNav to yourTheme_primaryNav.
- Define the yourThemePrimaryNav style class in one of the .css files for your theme that gets loaded by one of the modules for your theme.
- If you are in development mode, restart the application for your theme. Otherwise, restart the portal server.