University Header

The UCF University Header is a cohesive marketing and branding tool for the entire university. It provides consistent navigational elements and a universal search feature with search suggestions.

The University Header has a responsive option and will adapt to various screen sizes as necessary. Responsiveness follows Twitter Bootstrap's breakpoint standards.

Installation

To add the University Header to your website, add this script tag to your document.

<script type="text/javascript" id="ucfhb-script" src="//universityheader.ucf.edu/bar/js/university-header.js"></script>

Usage

The University Header is a "plug-and-go" solution. Please keep the following in mind when including it on your site:

  1. The University Header should be consistent visually and functionally across all UCF websites.

    Please do not modify the bar's existing appearance or functionality, such as modifying graphics/colors associated with the bar, links included within the bar, markup associated with the bar or the search and autocomplete functionality.
  2. The University Header should always be at the top of each page.

    Do not modify where the bar is intended to render. The bar should always be the first element on the page.
  3. The University Header should not present any other content beyond its default content.

    The bar should not be given the appearance of an "attachment" of the default bar on your site, and should not include extra links or graphics beyond what the default bar provides. Your site's navigation should not be displayed as an extension or piece of the University Header.

Options

Responsiveness

To utilize a responsive bar, simply make sure your site's <head> includes the following <meta> tag:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Bootstrap 2.x overrides

Due to the way that some older versions of the Bootstrap CSS framework apply left- and right-hand padding to elements at screen sizes less than 768px wide, a style override is necessary for sites using these versions of Bootstrap if they utilize responsive styles.

<script type="text/javascript" id="ucfhb-script" src="//universityheader.ucf.edu/bar/js/university-header.js?use-bootstrap-overrides=1"></script>

For sites with a max-width greater than 1200px

A "use-1200-breakpoint" parameter can be added to display a wider version of the header.

<script type="text/javascript" id="ucfhb-script" src="//universityheader.ucf.edu/bar/js/university-header.js?use-1200-breakpoint=1"></script>

Note: These options require that the <script> tag has an ID of ucfhb-script. If your site runs on WordPress, uses wp_enqueue_script() to enqueue scripts, and requires these overrides, enqueue the University Header script with wp_enqueue_script() using the parameter(s) above, and add the following snippet to your theme's functions.php file:

/**
 * Add ID attribute to registered University Header script.
 **/
function add_id_to_ucfhb($url) {
    if ( (false !== strpos($url, 'bar/js/university-header.js')) || (false !== strpos($url, 'bar/js/university-header-full.js')) ) {
      remove_filter('clean_url', 'add_id_to_ucfhb', 10, 3);
      return "$url' id='ucfhb-script";
    }
    return $url;
}
add_filter('clean_url', 'add_id_to_ucfhb', 10, 3);

Protocol-relative script source in WordPress

Keep in mind that protocol-agnostic URLs ('//universityheader.ucf.edu...' vs 'http://universityheader.ucf.edu...') can only be registered via WordPress in version 3.5 or above. Older version of WordPress that enqueue scripts must specify a protocol at the beginning of the script source; this can be done explicitly or can be grabbed on the fly, using PHP.


Browser Compatibility

Desktop

The University Header is compatible with IE7 and greater and works in any other modern browser.
Note that some features, such as CSS3 animations on the UCF Login toggle, are not available on older browsers. Responsiveness is nonfunctional in IE8 and older due to lack of support for CSS media queries; functionality can be added with additional libraries such as respond.js if necessary. The UCF Header has not been tested with these libraries and support with these libraries is not guaranteed.

Mobile

The University Header has been tested in iOS 6.0+ and stock Android browser emulators running Android v1.5+, as well as the latest version of Opera Mobile.

Note: The University Header may not render properly if the <body> tag on your site has margins, padding, or other non-standard styles applied to it. Use a CSS Reset, CSS framework, or your own <body> tag styles to ensure consistent rendering across all browsers.