Skip to main content

About UW Theme Lite

This theme evolved out of the original UW–Madison theme that was first released in 2011. It represents a substantial rewrite of that theme (see Changes section below), adopting current best practices in WordPress theme development, as well as CSS, Javascript, HTML and accessibility. This theme offers a solid, responsive design solution out of the box.

Using the theme

Note: This version of theme (2.1.0) reflects a renaming of the theme to UW Theme Lite (the folder name is uw-theme-lite; it used to be uw-madison-160). See more information about the renaming and how to switch to the newly-named theme.

Download ()

After downloading and unzipping the theme, install it in your site’s themes folder and activate through your admin dashboard.

Using a child theme

If you want to extend the theme, you should use a child theme. Do not edit the theme files themselves. If you do so, you will lose those changes when upgrading the theme in the future. See the WordPress documentation for Child Themes.

Customizing the theme options

Use WordPress’s Customize screen to set options for the theme. The options that can be set include:

Colors and Typography: You can switch between a light grey or white page background. You can flip-flop the red and white background colors of the top global menu bar and the main menu bar. The theme uses the Verlag font face, which is now widely used in campus communications, most notably on wisc.edu.

Header: The header options allow you to include a search input in your header. The search is the default WordPress search solution. We recommend using search only if your site has more than 50 pages. You can also set a “hero” image (see this demo site’s home page for example) for your site’s home page.

Layout:  You can pick between three layout options for your site: two-column with a sidebar on the right or left or one-column (no sidebar). If you choose a two-column layout, the sidebar can be excluded on a page-by-page basis by checking the Include sidebar option in the Page options box when posting a page. The content of your sidebar will be the same across the site. The default content includes the standard WordPress widgets as seen on this demo site. Sidebar widgets can be added, removed and rearranged through the Widgets section in the Customize screen.

Menus: The theme supports up to three different menus areas out of the box: the main menu, the secondary menu (which appears in the top menu bar) and two footer menus (which appear as lists of links in the footer under a heading corresponding to the menu name.) The Main and Secondary menus support one level of child, dropdown menus (though we recommend avoiding dropdown menus altogether if possible and instead trying to define a site information architecture that clearly leads your users through your site’s content hierarchy.) See below for more details about setting footer menus.

Widgets: There is one “widgetized” area in this theme: the sidebar. By default, the sidebar will use some of WordPress’s standard widgets (e.g. Meta, Archives, Blogroll). Widgets can be added, removed or rearranged to suit your needs. (The Custom Menu widget can be a handy way to add a list or lists of links to your sidebar.)

Static Front PageThis exposed WordPress’s built-in option for choosing a page you publish to serve as the front page of your site (instead of showing your most recent posts, which is the default). You first publish a page with content you want to include and then select that page through this option.

FooterThe footer options allow you to set an email and phone number, as well as a variety of social media URLs that will appear in your site’s footer. You can also specify up to two footer menus. You first need to create the menus in the menu manager (the menu name you choose will be used as the header in the menu) and then select them in the Footer options. It’s best to include between 4–8 items in each menu if you use them.

Developing with the theme

Web developers who use the theme can work with it in a number of different ways:

As a child theme

As with any WordPress theme, you can create a child theme if you want to extend or override its functionality beyond what is possible using the theme customizer. See the WordPress documentation for Child Themes for documentation. The theme does provide a few hooks (see WordPress docs) that might be useful:

uwmadison_body_classes filter: Allows you to add additional classes to the <body> element for use in your CSS and JS.

uwmadison_footer_contacts filter: Allows you to override or extend the content that appears under the Contact Us header in the footer. E.g. if you needed to show a fax address or a different social media account.

uw_hero_image filter: Allows you to override the default markup used for the hero image if one is set in the theme Customizer.

Aria_Walker_Nav_Menu class filters: The menu walker class includes several filters, not specific to this theme, that allow you to override various aspects of how the menus are output.

If you have suggestions for additional filters or action hooks, please contact us or consider contributing to the theme’s development (see below).

Customizing CSS

CSS customizations should be done within a child theme. The theme’s source code (not included with the zip download) includes the Sass files used to compile the theme’s CSS. If you’re working with the source code (see below), you can selectively compile in the theme’s source Sass as needed (including variables and a limited number of mixins). The theme’s source includes a Bower dependency for UW Style which is a set of Sass files and some Javascript that University Marketing is developing for use in any website or web app. This will be documented more in the future; for now, please direct questions to wordpress@umark.wisc.edu.

Getting the source code

The zip download includes only the files needed to run the theme. The theme’s source code is stored in the campus’s Gitlab service, which is maintained by DoIT. To clone or fork the project, login to git.doit.wisc.edu via Shibboleth and visit UW Theme Lite. The project README file includes instructions for how to build a local development environment. The source code includes only the theme; you will need to download or compile WordPress core into your project in whatever way you prefer.

Contributing to the project

Reporting issues and requesting features

Please use the GitLab Issues tool inside the project to report issues and/or feature requests.

Contributing code

We welcome contributions to the code. To contribute, fork the repository, create a branch for your contribution, make and commit your code changes, push your branch to git.doit.wisc.edu and then make a merge request when you are ready. Please try to first submit an issue and let us know you’d like to work on it before submitting the merge request. Please keep merge requests as focused as possible. Let us know if you have questions by emailing wordpress@umark.wisc.edu.