Stanford Modern Drupal Theme

From Web Services Wiki

Jump to: navigation, search

Contents

Installation

Download the latest Stanford Modern Drupal Theme package. 

Note that themes for different Drupal versions are not interchangeable. The Stanford Modern Drupal Theme is intended for Drupal versions 6 and above; it will not work with Drupal 5 or below.

  1. Read any README or INSTALL files in the package to find out if there are any special steps needed for this theme.
  2. Upload the contents of the theme package to a new directory in the themes directory in your Drupal site. Place the theme in /sites/all/themes/stanford
  3. Click Administer > Themes and enable the new theme (Drupal will auto-detect its presence).
  4. Edit your user preferences and select the new theme. If you want it to be the default theme for all users, check the default box in the themes administration page.

Stanford Header Images

The /sites/all/themes/stanford/css/stanford_menus.css sets the various header images for some common menu lists used on either the left or right hand columns. To invoke these styles you must label your navigation lists with one of these specific names:

  • calendar
  • computing
  • contact
  • document
  • download
  • email
  • faq
  • forms
  • medical
  • people
  • related-sites
  • see-also
  • video

NOTE: these names are case sensitive.

Also included are some default menu blocks with graphics - these can be modified as or if you choose and are located at the end of the list. They are:

  • login (a.k.a #block-user-0)
  • admin (a.k.a. #block-user-1)
  • who's new (a.k.a. #block-user-2)
  • primary search (a.k.a. #block-search-0)

Change Log

FAQ's

How do I customize the Stanford Drupal theme with additional editable regions, custom stylesheets, or page templates?

Download the sample Stanford Modern Drupal Custom Sub Theme package.
  1. Upload the contents of the theme package to a new directory in the themes directory in your Drupal site. Place the theme in /sites/all/themes/
  2. Click Administer > Themes to enable the new theme (Drupal will auto-detect its presence).
  3. Customize the sub theme by editing the various page templates and CSS files within the sub theme directory.
  4. Edit /sites/all/themes/stanford-custom/page.tpl.php to modify the page template.

If you are managing your site using the collaboration tools upgrader for Drupal, creating a sub theme ensures that your customizations will not be overwritten during the upgrade.

The Stanford Modern Drupal theme is too narrow for content display within the administration interface. Is a wide version of the theme available for download?

  1. An administration Drupal sub theme is bundled with the Stanford Drupal theme.
  2. Click Administer > Administration Theme, select "Stanford Administration", click "Save configuration" to enable the administration theme.

How do I add text to the top red banner section?

  1. Go to Administer > Site Configuration > Site Information
  2. Enter text in the Site Name and Slogan text fields.

How do I add copyright text to the footer section?

  1. Go to Administer > Site Configuration > Site Information
  2. Enter the following in plain text in the Footer message text area:
&copy; <span class="fn org">Stanford University</span>. <span class="adr">450 Serra Mall, <span class="locality">Stanford</span>, 
<span class="region">California</span> <span class="postal-code">94305</span>. <span class="tel">(650) 723-2300</span></span>. 
<a href="http://www.stanford.edu/site/terms.html">Terms of Use</a> | <a href="http://www.stanford.edu/site/copyright.html">Copyright Complaints</a>

How do I add links to the footer section?

  1. Go to Administer > Site building > Menus > Add Menu
  2. On Add Menu screen, enter footer as the Menu name and Footer as the Title. Click Save.
  3. Add items to the menu by selecting the Add item tab. These items will become the footer links.
  4. Once you're finished with adding items to the footer menu, go to Administer > Site building > Blocks > List > Stanford
  5. Find the Footer menu item and move it to the Footer region. Save blocks.

How do I hide the authenticated user login text fields and allow only SUNet ID users to login?

  1. Add the following code to /sites/all/themes/stanford/custom.css
  2. You can still log in to your root account by going to http://[your site url]?q=user
#block-user-0 #edit-name-wrapper, 
#block-user-0 #edit-pass-wrapper, 
#block-user-0 #edit-submit, 
#block-user-0 .item-list {display: none;}

Example Sites

Help Resources

Personal tools