Please visit the theme Wiki pages for more information on changes from the uw-2014 theme, Bootstrap features, child themes, and developer documentation.
You can also follow along on our progress and learn more about our development roadmap and backlog.
The UW WordPress Theme theme includes the following features.
- Bootstrap 4 integration
- UW brand styled shortcodes and components
- Mobile-first
- Progressive enhancement
- Modern styling and layouts using grid and flexbox
- Modern JavaScript
- Starter child theme
Are you a developer on this project? Please see the developer documentation on the theme wiki to get started.
- Download this repo as a zip file.
- If needed, rename the zip file or folder to
uw_wp_theme.zip
. - Log into your WordPress admin, if not already.
- Go to Appearance > Themes and click the Add New button.
- Click the Upload Theme button.
- Drag and drop the UW WordPress Theme zip file to the file upload area and click the Install Now button.
- Click the Activate link.
Do you need a child theme? If so, download and install our starter child theme.
The theme has styled templates for the blog:
- posts page
- single post
- archive page for categories & tags
- Log into your WordPress admin, if not already.
- Create a page and call it whatever you'd like your blog called.
- If you'd like any intro text to appear on your blog, edit your blog page to add the content in the editor area.
- If you'd like a header image for your blog section, set it using the featured image on the blog page.
- Go to Settings > Reading.
- Under "Your homepage displays" select "A static page"
- For Homepage, choose the home/front page you'd like to display.
- For Posts page, choose the page you just created for your blog.
- Click the Save Changes button.
These are all checkboxes you can use to enable these features.
- Show bylines on single posts and archives (author and date)
- Show author name on posts. Note: need to enable "Show bylines on single posts and archives?" for this to work
- Show post date on posts. Note: need to enable "Show bylines on single posts and archives" for this to work
- Show categories on posts
- Show tags on posts
- Show all blog posts as excerpts on the posts page
- Show blog intro on all posts pages (e.g. page 2, 3, 4)
- Hide prev/next thumbnail images on single blog posts
On a single post page, the posts navigation will display a thumbnail of the featured image for the post. If no featured image is set, a W icon is displayed as a placeholder.
A sticky post will pin to the top of your posts page and have a similar look and feel to our cards. To set, edit Visibility in the Publish section of a blog post and check the box for "Stick this post to the front page".
Categories and tags use a UW-branded Bootstrap badge styling.
To make for a cohesive user experience, the page header for all blog-related pages will follow what is set for the posts page: featured image, title, and link.
If enabled, breadcrumbs will show the blog page in the hierarchy before the home page.
Customize the content on your site's 404 page. To use, select Appearance > Custom 404 page. Add your custom content to the "Custom 404 page content" section and check the box to "Enable custom 404 content". Your custom content will display on your site's 404 page between the heading "Not what you were expecting?" and the search bar. Uncheck "Enable custom 404 content" to remove it and use the default 404 page content.
In the Page Attributes panel on the right sidebar of the page editor, there are several ways to customize your page.
- Parent - select the parent page of the current page.
- Hide from menu: check to hide the page from the sidebar menu
- Template - select from the different page templates. See examples.
- Sidebar
- No Sidebar - select to remove the sidebar from the page. This option is available for every page, including the home page.
- Hide Sidebar Navigation - check this box if you want to include a sidebar on the page not not the sidebar menu.
- Breadcrumbs - check this box if you want to remove the breadcrumbs from the top of the content area of the page.
- Order - enter a number in this box to change the display order of pages. Pages with the lowest number will display first. Default: 0.
The theme has 2 menu options to choose from. You can toggle between them in the Theme Panel settings page.
-
Default (classic uw-2014) is an updated version of the classic UW-2014 theme's menu. This will look familiar if you have used this theme before. To build your menu, go to Appearance > Menus. Create a menu and set it to Display Location: White Bar.
-
Mega Menu is a menu system that allows for up to 3 columns of menus with sections. Build your navigation menu in the WordPress admin (Appearance > Menus) as you normally would with top-level items and drop-down items nested below. Set it to Display Location: Mega Menu.
Sub-menus or drop-downs will build out columns to the right and then wrap to a new row depending on how many columns there are. One section will look like a regular list view (1 column). Two sections will be 2 columns, three sections will be 3 columns, four sections will be 2 columns and 2 rows, five sections will be 3 columns and 2 rows, six sections will be 3 columns and 2 rows, etc. We do not recommend going beyond 6 sections but the menu will continue to build as long as you make it.
Here is a visual example of building out a mega menu.
Top level 1 (2 columns, 1 row)
-- Column (optional heading)
-- Page link
-- Page link
-- Page link
-- Column (optional heading)
-- Page link
-- Page link
Top Level 2 (3 columns, 1 row)
-- Column (optional heading)
-- Page link
-- Page link
-- Page link
-- Column (optional heading)
-- Page link
-- Page link
-- Column (optional heading)
-- Page link
-- Page link
-- Page link
Top Level 3 (2 columns, 2 rows)
-- Column (optional heading)
-- Page link
-- Page link
-- Column (optional heading)
-- Page link
-- Page link
-- Column (optional heading)
-- Page link
-- Page link
-- Column (optional heading)
-- Page link
-- Page link
To apply the heading styling in the mega menu, go to Screen Options and enable the Advanced menu property for CSS Classes. Now, add the heading
class to the navigation items you want to show as headings.
If you want to create a column with a single item, you can add the nav-group
class to the top-level item you wish to be a column. You can also combine this with the heading
class.
To add a button or an icon button to the top-level navigation menu, add the button
class to the menu item. To add an icon, use any of the ic-*
classes.
The default button is purple background with white text. To change to a dark gold button, use the darkgold
class. To change to a gold button, use the gold
class.
This example would create a dark gold button with the heart icon:
button darkgold ic-heart
Note: Only the button
class is required to activate this feature. Other classes are optional.
If your mega menu has many items, the menu items may wrap to a second line. This causes the dropdown menu (if present) to display offscreen. To fix this, add the left-dropdown
class to the menu item. The positioning of the dropdown menu will align with the left edge of the parent item instead of the right edge.
Add an external link icon to the end of a menu item by adding the ic-external
class to the menu item.
This icon works on submenus for both the mega menu and the classic menu. It does not work on top level menu items.
Default quicklinks are provided in the theme if you would like them to be consistent with what is on the https://uw.edu website. To customize them, just create a menu in the Quick Links location. Note: For multisites, Quick Links location will only appear on blog/site 1 and populate all other sites.
Links that have a class set containing an icon will appear at the top formatted as a larger link with an icon. Links without an icon will appear under the "Helpful Links" section.
Icon class options:
icon-map
icon-directories
icon-calendar
icon-libraries
icon-medicine
icon-myuw
icon-uwtoday
A site notification banner can be displayed on each page of your site. Notification messages should be brief and temporary (e.g. announcing an important change, a temporary closure or other short-lived announcement). The site notification will display at the top of each page, just below the navigation menu. Users can dismiss the message on a page. It will persist across the site until it is turned off in the admin area.
To use, select Appearance > Site Notification Banner. Add your message to the text field, select a color option and check "Turn on banner". The message will display on every page of your site. Uncheck "Turn on banner" to remove it.
- Don't start an ID with a number. Don't include spaces in an ID, use hyphens instead
- Shortcode IDs on a page must be unique, short and descriptive
This accordion shortcode uses the Bootstrap collapse, with additional keyboard accessibility added per WAI-ARIA Authoring Practices 1.1.
Attributes:
- style: Set the accordion titles to uppercase or non-bold. Options: uppercase-title, non-bold (Default: none)
- name: Set the name for the accordion.
- id: Specify an ID to use for the accordion. Make sure to start your ID with a letter (no numbers or special characters). Default: auto-generated on accordion, none on section
Note 1: the accordion name will not show up on the page. However, it is important to include a name, as it is used to generate the unique ID of the accordion. The name will also be read by screen-reader assistive technology. If you want a name (title) of an accordion, add text above the accordion shortcode.
Note 2: If an id is set on accordion, this will override the name or generated ID. If an id is set on the sections, you can use the id to automatically open to that section with the URL, like this: your_site/page_with_accordion/#section-id
. Do not start your ID with a number or the accordion section will not open.
Example:
[accordion name="Accessible Accordion" id=""]
[section title="Example" id=""] Section[/section]
[section title="Example" id=""] Section[/section]
[section title="Example" id=""] Section[/section]
[/accordion]
Options include defaulting an accordion open. For example:
[accordion name="Accessible Accordion"]
[section title="Example" active="true"] Section[/section]
[section title="Example"] Section[/section]
[section title="Example"] Section[/section]
[/accordion]
This shortcode creates a UW-branded blockquote with styling options.
Attributes:
- style : Choose the styling for the blockquote. Options: brand, simple. (Default: brand)
- align : Set the alignment for the blockquote. Options: left, right, center. (Default: left)
- name : Set the name for the blockquote source.
- title : Set the title of the blockquote source.
- id: Specify an ID to use for the blockquote. Make sure to start your ID with a letter (no numbers or special characters).
- Content is required.
[blockquote style="" align="" name="Dubs Husky" title="Official Live Mascot" ] blockquote text [/blockquote]
This is a shortcode that wraps the WordPress get_posts function and templates out a blogroll. Any parameter you can pass to get_posts
will be understood along with the following.
Attributes:
- excerpt : Choose whether to show the excerpt in the blogroll. Options: show, hide. (Default: hide)
- trim : Whether or not to trim the words via WordPress wp_trim_words function. Options: true, false. (_Default: _false)
- image: Choose whether to show the featured image thumbnail. Options: show, hide. (Default: hide)
- author: Choose whether to show the author. Options: show, hide. (Default: show)
- date: Choose whether to show the publish date. Options: show, hide. (Default: show)
- titletag: The html element for the post titles. (Default: h2)
- post_type: The post type to look for.(Default: post)
- number: The maximum number of results to return (Default: 5)
- mini: Use the miniture template instead of the default one. (Default: false)
- category: The WordPress category ID to limit the results from. (Default: None)
- category_name: The WordPress category name to limit the results from. (Default: None)
- readmore: Choose whether to show the "Read More" link or not. Options: on, off. (Default: on)
Example:
[blogroll number="3" trim="true" readmore="off"]
This is a UW-branded button. Add the button text between the [uw_button][/uw_button]
shortcode.
Attributes:
-
style: Adjusts the image of the button. Options: primary, secondary, square-outline, and all the icons on UW Web icons page. (Default: square-outline).
Please use the icon name for shortcode style without ".ic-". For example, the icon name for the flag is ".ic-flag". The style attribute of a button shortcode with flag icon is
style="flag"
. -
size: Adjusts the size of the button. Options: large, small. (Default: large)
-
color: The color of the button. Options: white, purple, light-gold, gold. (Default: none)
-
target: The URL for the link or download that you want to direct the user to on click. (Default: none)
-
id: Specify an ID to use for the button. Make sure to start your ID with a letter (no numbers or special characters).
Example:
[uw_button style="arrow" size="large" color="gold" target="#"](button copy)[/uw_button]
There are a ton of options available for cards. In general, there are small cards, content-width cards, and full-width cards. Small cards are variable width and should be used in conjunction with the [row][col][/col][/row]
grid shortcode for layout.
Note: Not all attributes and options go with all card types.
Attributes:
- style: Choose from 6 different small card styles, content-width (large), or edge-to-edge (full-width). Options: inset, no-image, image-top, block, text-link, step, large, half-block-large, full-width, half-block-full. (Default: inset)
- align: Currently only used for large, half-block-large, full-width, and half-block-full cards. Sets the image to the left or right, with the card body on the other side. Options: left, right. (Default: left)
- color: Choose a color scheme for small and large cards. Not all cards have all color options. Options: gold, white, purple. (Default: Each card type has its own default. inset: gold, no-image: gold, image-top: gold, block: white, text-link: white, step: white, large: gold, full-width: gold)
- image: For inset, image-top, block, large, half-block-large, full-width, and half-block-full cards. Sets the URL of the image. (Default: none)
- alt: Sets the alt text for the image. Use with inset, image-top, block, large, half-block-large, full-width, and half-block-full cards. (Default: none)
- icon: Only used with step cards. Available icons are listed on the UW Brand site. Use without the period at the beginning: e.g.
.ic-check
should beic-check
. (Default: none) - title: Title or heading for the card. Required for all cards. (Default: Add a title!)
- titletag: Heading tag used for the title. Supported tags: h2, h3, h4 (Default: h2)
- subtitle: Only used with step cards. (Default: none)
- button: Button text. Required for all cards except block (no button). (Default: ADD BUTTON TEXT!)
- link: Button link. Required for all cars except block (no button). (Default: none
- id: Specify an ID to use for the card. Make sure to start your ID with a letter (no numbers or special characters).
- stretched_link: If set to 'true', extends link to image and headline. Only for 'inset' and 'image-top' options. (Default: none)
Shortcode with all options:
[uw_card style="" align="" color="" image="" alt="" icon="" title="" subtitle="" button="" link="" stretched_link=""]content goes here[/uw_card]
Image top card example:
[uw_card style="image-top" image="link_to_image_goes_here" alt="alt_text_goes_here" title="title_goes_here" button="button_text_goes_here" link="button_link_goes_here" stretched_link=""]content goes here[/uw_card]
Large card example:
[uw_card style="large" align="right" color="purple" image="link_to_image_goes_here" alt="alt_text_goes_here" title="title_goes_here" button="button_text_goes_here" link="button_link_goes_here"]content goes here[/uw_card]
Example with grid shortcode for responsive 3-column layout:
[row]
[col class="col-sm"]
[uw_card style="inset" color="gold" image="link_to_image_goes_here" alt="alt_text_goes_here" title="title_goes_here" button="button_text_goes_here" link="#"]Something goes here...[/uw_card]
[/col]
[col class="col-sm"]
[uw_card style="inset" color="purple" image="link_to_image_goes_here" alt="alt_text_goes_here" title="title_goes_here" button="button_text_goes_here" link="#"]Something goes here...[/uw_card]
[/col]
[col class="col-sm"]
[uw_card style="inset" color="white" image="link_to_image_goes_here" alt="alt_text_goes_here" title="title_goes_here" button="button_text_goes_here" link="#"]Something goes here...[/uw_card]
[/col]
[/row]
This shortcode simply takes in the url and parameter text (link text) you desire and generates a hyperlink for you with the url and the link text in it.
Attributes:
- url: The url you would like to be linked.
Example:
[customlink url="the url you want"] Link text [/customlink]
This shortcode pulls in a custom menu that can be created under Dashboard > Appearance > Menus. Icons can be added in the class field in the menu builder. View the full set of icons for more information.
Attributes:
- menu: Enter the name of the menu found in Dashboard > Appearance > Menus. (Default: Main menu)
Example:
[custommenu menu="Menu-name-here"]
Uses and extends the built-in WordPress gallery functionality and shortcode. Enable carousel mode for a Bootstrap carousel or leave as-is for a photo grid layout. See options below for each mode. There can be any combination of carousels and galleries on the same page.
Make sure you add descriptive alt text to all of your images.
Note: It is recommended you use the WordPress gallery dialog to set up your carousel or gallery.
Options used from Gallery dialog:
- Link To: Attachment Page, Media File, None. (Default: Attachment Page)
- Columns: 1-9 (Default: 3) Note: some column layouts are adjusted for mobile on smaller screen sizes
- Random Order: Check to enable random order (Default: disabled)
- Size: Ideally, always use Full Size. (Default: Thumbnail)
- Disable space between images: Enable if you do not want the spacing gap between images. (Default: disabled)
To add captions overlay to a gallery:
- Link To must be set to None
- Check the Enable simple captions option. Check to enable a semi-transparent purple overlay with with text. (Default: disabled)
- Uncheck the Enable carousel option.
Optional shortcode:
[gallery size="full" uw_carousel="false" uw_carousel_fullwidth="false" uw_carousel_captions="false" uw_photo_grid_gap="false" columns="4" link="file" ids="comma_separated_ids_of_photos"]
Make sure to add captions to your images!
Options used from Gallery dialog:
- Random Order: Check to enable random order (Default: disabled)
- Size: Ideally, always use Full Size. (Default: Thumbnail)
- Enable carousel: Required. Must be checked to enable carousel. (Default: disabled)
- Enable full-width: Check to enable full-width carousel. Note: Make sure to use on a page without a sidebar! (Default: disabled)
- Enable simple captions: Check to enable black text on a white background, below image. Default captions are white text with purple background over image. (Default: disabled)
Optional shortcode:
[gallery size="full" uw_carousel="true" uw_carousel_fullwidth="false" uw_carousel_captions="true" columns="1" ids="comma_separated_ids_of_photos" orderby=""]
For dividing your content into columns of various widths. Uses Bootstrap grid classes.
Options for [row]
- class: any Bootstrap class (Default: row)
- height: equal: sets all columns to equal height (Default: none)
- width: full-width: sets the container to full-widt (edge-to-edge) (Default: none)
- background: Sets background color. Options: gold, purple, gray (grey also works), lightgray (lightgrey also works), none. Also sets <h*> and
color. (Default: none)
- image: Sets background image. Recommended size is 1920px x 1280px. Use background color option to change text color. (Default: none)
- id: Specify an ID to use for the row. Make sure to start your ID with a letter (no numbers or special characters). (id also works on
[col]
)
Note: On pages with a sidebar, the full-width option should not be used or you will see unexpected behavior.
Example:
[row]
[col class="col-md-12"]Text[/col]
[/row]
This shortcode creates an italicized block of introduction text for the content.
No attributes.
Example:
[intro] A block on introductory text for the content. [/intro]
Display hero-style content. A lightweight, flexible component that can optionally extend the entire viewport to showcase key marketing messages on your site. Several options and styles are available.
Default style is content-width. All other styles are full-width.
Attributes:
- style: block, block-slant, block-center, simple, default (Default: default or none)
- overlay: gray, white, gold, purple (Default: none) Optional, for default and simple styles only.
- align: right (Default: none) Optional, for block and block-slant styles only. Adjusts the overlay positioning.
- image: background image URL (Default: aerial new burke image)
- title: Title for jumbotron (Default: Add a title!) Required.
- titletag: Heading tag used for the title. Supported tags: h1, h2, h3 (Default: h2)
- button: Text for jumbotron button (Default: Add button text!) Required.
- link: URL for jumbotron button (Default: none) Required.
- id: Specify an ID to use for the jumbotron. Make sure to start your ID with a letter (no numbers or special characters).
Note: On pages with a sidebar, only the default style should be used or you will see unexpected behavior.
Example:
[uw_jumbotron style="default" title="Jumbotron title" overlay="purple" image="link-to-image" button="Button text" link="url-for-button"]This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.[/uw_jumbotron]
For adding a modal. Anything placed inside the [uw_modal][/uw_modal]
shortcode will appear in the modal window.
Attributes:
- id: The id of the modal. Used to connect button to modal window. Make sure to start your ID with a letter (no numbers or special characters). (Default: none)
- title: Title that shows at the top of the modal window.
- button: Trigger button text. (Default: "Set button text")
- width: narrow, wide, default/none (medium-width). Sets width of modal. (Default: none)
- color: gold, purple. Sets the color of the trigger button. (Default: purple)
- scroll: true. Set to
true
if scroll inside modal. (Default: none) - position: center. Set to
center
if modal vertically centered in viewport. (Default: none)
Example:
[uw_modal id="" title="Enter a title" width="wide" color="purple" button="Button text" scroll="true" position="center"](modal content)[/uw_modal]
Note: When nesting a modal inside a card or jumbotron, please be aware that certain styles cannot accommodate a modal and you will see unexpected results. The styles include, but may not be limited to: content-width and full-width cards, block-slant jumbotron.
This shortcode lists out all the subpages relative to the current page. There are two views this shortcode can render: list or grid. The list view displays all the subpages as anchor tags in an HTML list element. The grid view displays all the subpages as boxes, with their title, excerpt and author if available.
Attributes:
- link: The text in the anchor tag that will link to the subpage. (Default: Read more)
- tilebox: Enable the grid layout of the subpages. Options: true, false. (Default: false)
Example:
[subpage-list link="More information here" tilebox="true" ]
This tabs/tours shortcode uses the Bootstrap tabs and vertical tabs for tours, with additional keyboard accessibility added per WAI-ARIA Authoring Practices 1.1.
Attributes:
- style: Enables the styling for the tabs. Options: alt-tab (Default: false)
- name: Sets the name for the tabs.
- tour: Enables the tour (vertical tabs) layout when set to true. Options: true, false. (Default: false)
- id: Specify an ID to use for the tabs or tour. This will be used for the link URL. Make sure to start your ID with a letter (no numbers or special characters).
Section Attributes:
- title: Sets the name for the tabs.
- id: Specify an ID to use for the section. This will be used for the link URL. See Note 3 below. Make sure to start your ID with a letter (no numbers or special characters).
Note 1: the tabs name will not show up on the page. However, it is important to include a name, as it is used to generate the unique ID of the tabs. The name will also be read by screen-reader assistive technology. If you want a name (title) of a tabs set, add text above the tabs shortcode.
Note 2: If an id is set, this will override the name or generated ID.
Note 3: id should be all lower case characters, -
, _
, or numbers. Do not use spaces. Numbers and special characters should not be the first character. See MDN Web Documentation for more information.
To link directly to a tab section, copy the URL from the address bar after it's clicked or copy the URL from the section link.
Example:
[uw_tabs name="tabs name"]
[tabs_section title="section title" id="first-tab"] content [/tabs_section]
[tabs_section title="section title" id="second"] content [/tabs_section]
[tabs_section title="section title" id="tab_number_3"] content [/tabs_section]
[/uw_tabs]
Options include defaulting a specific tab open by setting it to active and specifying an alternate style. For example:
[uw_tabs name="tabs name" style="alt-tab"]
[tabs_section title="section title"] content [/tabs_section]
[tabs_section title="section title"] content [/tabs_section]
[tabs_section title="section title" active="true"] content [/tabs_section]
[/uw_tabs]
To use as a tour, or vertical tabs, set the tour flag. You can also set a default tab in this layout. For example:
[uw_tabs name="tabs name" tour="true"]
[tabs_section title="section title"] content [/tabs_section]
[tabs_section title="section title" active="true"] content [/tabs_section]
[tabs_section title="section title"] content [/tabs_section]
[/uw_tabs]
This shortcode embeds a Tagboard feed onto the page. Tagboards that you wish to embed should already be embeddable. You can check that your Tagboard is embeddable by visiting the Tagboard's dashboard and looking for the embed icon.
Attributes:
- id: the ID of your Tagboard. This can be found by visiting your Tagboard's dashboard and looking for the ID at the end of the url. (Default: none)
Example:
[tagboard id="4354"]
Deprecated. Use Cards instead.
Display branded tiles to structure content in elegantly. Each tile is setup as a series of shortcodes wrapped in a [box] shortcode.
Attributes:
- alignment: How the text is aligned in each tile. Options: centered, none. (Default: none)
- color: Background color of the tiles. Options: tan, none. (Default: none)
- empty: (Add this to [tile], not [box]). If tile has no content, allow it to be transparent, but take up the normal amount of space. Options: true, false. (Default: false)
Example:
[box alignment=centered]
[tile] Text for tile one [/tile]
[tile] Text for tile two [/tile]
[tile] Text for tile three [/tile]
[tile] Text for tile four [/tile]
[/box]
For displaying a Trumba calendar spud in post or page content.
Attributes:
- name: Required Trumba web name of the desired calendar. (Default: none)
- type: The Trumba spud type of the desired calendar. Changing the type will change how the calendar is displayed. A list of all spud types can be found here. (Default: none)
- base: The full url of the desired base calendar. This can be embedded on your site with the spud type="main" (Default: none)
- url: Optional URL parameters to add additional Trumba parameters to your embed.See Trumba documentation for more details. (Default: none)
[trumba name="my web name" type="desired spud type" base="teaser base url"]
Example:
[trumba name="sea_campus" type="main" base="https://www.washington.edu/calendar"]
For embedding an RSS feed from a trumba calendar.
Attributes:
- url: url of the calendar rss feed.
- category: Display event categories. Options: true, false. (Default: true)
- description: Display event descriptions. Options: true, false. (Default: false)
Example:
[trumba-rss url="calendar rss url" category="true" description="false"]
Embed the location of a UW campus building on your page using the UW branded campus map. You can find the building code on the UW Campus Map
Options:
- Title : The title of the widget (Default: None)
- Building code : The UW campus building code for the desired building to embed, ie: "kne" for Kane Hall. (Default: None)
Displays one of three styles of branded card. Both text and image can be customized.
Options:
- Title : The title of the widget (Default: Image Widget)
- Select an image : Select an image from the WordPress media library (Default: None)
- Featured text : A small blurb that is shown below or on top of the image (Default: None)
- Link : A URL for the More link text (Default: None)
- More link : The text to display in the more link (Default: Read more)
- Card style : Choose one of three styles (Default: None)
Similar to the default WordPress widget Recent Posts but with different options and layout.
Options:
- Title : The title of the widget (Default: None)
- Number of posts to display : The number of posts to show (Default: 1)
- Display more link : Display an anchor tag that links to the blogroll page (Default: false)
Creates a floated info box for highlighting content.
Options:
- class: float-right, full-width. (Default: float left)
Base:
<div class="info-box">content</div>
With options:
<div class="info-box float-right">content</div>
<div class="info-box full-width">content</div>
The [googleapps]
shortcode has be deprecated. Please use the [iframe]
shortcode instead.
To migrate from the [googleapps]
calendar shortcode to the [iframe]
shortcode, you will need to update as follows.
Your old Google Calendar [googleapps]
shortcode looks like this:
[googleapps domain="www" dir="calendar/embed" query="src=somenetid%40uw.edu&ctz=America%2FLos_Angeles" width="500" height="500"]
Update it to:
[iframe src="https://calendar.google.com/calendar/embed?src=somenetid%40uw.edu&ctz=America%2FLos_Angeles" height="500" width="500"]
Options:
- src: The sharing URL for your calendar Instructions from Google to Add a Google calendar to your website, see "Embed a calendar on your website". Required
- height: Height of the iframe embed, in pixels.
- width: Width of the iframe embed, in pixels.
Simply copy and paste the YouTube video URL to embed videos and playlists.
moved to CHANGELOG.md
WCAG 2.0 level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Large text is defined as 18px and bold or larger, or 24px (normal weight) or larger. Test contrast with this contrast checker.
Quick guide for UW Colors: Bold = Pass. Contrast is sufficient.
TEXT COLOR | Pure black | Black | Purple | Dark gray | Dark gold | Gold | Light gray | Light gold | White | Link blue | |
---|---|---|---|---|---|---|---|---|---|---|---|
#000000 | #373a3c | #4b2e83 | #5a5a5a | #85754d | #b7a57a | #c9c9c9 | #e8e3d3 | #ffffff | #1a62c7 | ||
BACKGROUND COLOR | --- | --- | --- | --- | CONTRAST | RATIOS | --- | --- | --- | --- | --- |
White | #ffffff | 21 | 11.45 | 10.4 | 6.89 | 4.51 | 1.86 | 1.65 | 3.51 | - | 5.8 |
Light gold | #e8e3d3 | 16.35 | 8.95 | 8.13 | 5.37 | 3.52 | 1.89 | 1.29 | - | 1.27 | 4.5 |
Light gray | #c9c9c9 | 12.68 | 8.01 | 7.27 | 4.16 | 3.15 | 1.69 | - | 1.11 | 1.43 | 4.06 |
Gold | #b7a57a | 8.67 | 4.73 | 4.3 | 2.84 | 1.86 | - | 1.46 | 1.88 | 2.42 | 2.39 |
Dark gold | #85754d | 4.64 | 2.53 | 2.3 | 1.52 | - | 1.86 | 2.72 | 3.51 | 4.51 | 1.28 |
Dark gray | #5a5a5a | 3.04 | 1.66 | 1.5 | - | 1.52 | 2.84 | 4.16 | 5.37 | 6.89 | 1.18 |
Purple | #4b2e83 | 2.01 | 1.1 | - | 1.5 | 2.3 | 4.3 | 6.28 | 8.13 | 10.4 | 1.79 |
Black | #373a3c | 1.83 | - | 1.1 | 1.66 | 2.53 | 1.86 | 6.91 | 8.92 | 11.45 | 1.97 |
Pure black | #000000 | - | 1.83 | 2.01 | 3.04 | 4.64 | 8.67 | 12.68 | 16.35 | 21 | 3.61 |