Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Primary navigation (also referred to as site navigation) is main navigation element appearing at the top of every page that allows visitor to explore the various areas of your site.

Primary navigation example.Image Added

To modify the contents of the primary navigation, locate and edit:
Base Folder/inc/nav-primary

Primary navigation appearanceImage Removed

Above: primary navigation example. 

Primary nav asset location in Cascade.Image Added

Below are the elements of the primary navigation used to add items to the primary nav. You will need to publish the navigation for changes to take effect.

Datadef elementDescription
Nav widget

This option adds extra content to the right side of the navigation bar. Available options are:

  • None - nothing is added.
  • Date - displays the current date.
  • Weather - displays the current weather (updated hourly).

Note: for the weather widget to function properly, you must also add the following custom external JavaScript reference in your site settings (refer to Configuring Customizations):
//web.communications.uci.edu/php/uci-weather/weather.js.php

Nav itemThis represents a single item in the navigation. You can add and remove instances of this field group using the + and - toggles.
Nav item > Item type

Defines the characteristics of the nav item.

  • link - defines the nav item as a simple link.
  • dropdown - defines the nav item as a button that toggles a dropdown menu.
  • link and dropdown - defines the nav item as a link with a dropdown menu toggle button next to it.

...