Theme Configuration

Themes can be switched on from the Themes page at Administer^-Site build-ing^-Themes (admin/build/themes), shown in Figure 2-44.

Figure 2-44. The Themes administration page

Most administrators can just ignore the "Enabled" column—the "Default" column is what actually defines the theme that all users without permission to select themes will see. Enabling our new theme is as simple as selecting it in the Default column and hitting the "Save configuration" button at the bottom of the form. The new default theme should affect the site design immediately.

The Enabled column allows the administrator to select multiple themes to be available for users with the "select different theme" permission enabled to choose from. Figure 2-45 shows a user account page for such a user when multiple themes are marked as enabled. Without this permission, which is not enabled by default, users will not actually see any of these choices. Not many sites enable this permission for users because, after all, your theme usually reflects your branding and hard design work.

Account information

Username:

Spaces are allowed; punctuation is not allowed except for periods, hyphens, and underscores.

E-mail address: *

| [email protected]

A valid e-mail address, All e-mails from the system will be sent to this address. The e-mail address Is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail,

Password:

Confirm password:

To change the current user password, enter the new password Fn both fields. V Tiieme configuration

Selecting a different theme will change the look end feel of the site.

Screenshot Name Selected

To change the current user password, enter the new password Fn both fields. V Tiieme configuration

Selecting a different theme will change the look end feel of the site.

Screenshot Name Selected

sites/all/the m es/contrib/barlow

0

WW—

garland:

themes/garland

8

(site default theme)

Figure 2-45. A user account with multiple themes to choose from v The "select different theme" permission can be a useful debugging tool.

A site administrator can enable both the site's normal theme and a core ' ' | ■>,' theme such as Garland, and switch between them if the site encounters errors. If the error happens only in the site's normal theme, then the theme is the first place to look for the problem. If it happens in both themes, it's a deeper problem, such as a database problem or configuration issue.

Themes

Global settings

TTiese options control the default display settings for your entire site, across a I themes. Unless they have beer overridden by a specific theme, these settings wiEl be used.

Toggle display

Enable or disable the display cf certain page elements. 3 Logo ^ Site name □ Site slogan ^ Mission statement User pictures in posts User pictures in comments Search box Shortcut Icon Primary links ^ Secondary links

Display post information on

Enahle or disable the submitted by usemame on date text when displaying pests of the fallowing type.

Figure 2-46. The theme configuration page allows customization of which page elements are displayed

Drupal offers a number of configuration features that themes can take advantage of. There are two ways to configure themes. For "global" options that you want to apply across all themes, select the "Global settings" tab at AdministersSite build-ingsThemessConfigure (admin/build/themes/settings). For settings specific to a single theme, or to configure settings that are only offered on a per-theme basis, select the "configure" link from the Operations column next to an enabled theme. The settings shown will vary from theme to theme.

On the settings pages, you can toggle the display of many theme elements, including the logo image, site name, site slogan, mission statement, and others, as shown in Figure 2-46. Some of the checkboxes may be disabled by settings elsewhere in your installation. Drupal doesn't give you many clues in this area, but in our example "User pictures in posts" and "User pictures in comments" are disabled because "Picture support" has not been enabled on the AdministersUser managementsUser settings (admin/user/settings) page. "Search box" is disabled because the Search module has not been enabled.

Settings such as site name, site slogan, and mission statement are configurable at AdministersSite configurationsSite information (admin/ settings/site-information).

Figure 2-47. The Color module, supported in some themes, offers customization of the site's colors

The theme configuration page also allows administrators to upload their own site logo image and shortcut icon (also known as the favicon or bookmark icon, which appears in the browser's address bar) or simply point to one elsewhere on their server.

Some themes, such as the core Garland theme, also take advantage of the Color module, which allows site administrators to configure its color scheme using a handy JavaScript-based color picker. Figure 2-47 shows the Color module in action.

Was this article helpful?

0 0

Post a comment