- Drupal 6 Theming Cookbook
- Karthik Kumar
- 404字
- 2021-04-13 16:56:41
This recipe details the steps involved in adding a slogan to the theme. Site slogans are a common feature on most sites and are typically witty or involve clever wordplay. They are synonymous with catchphrases, tag-lines, mottoes, and so on.
Drupal offers a global setting to store the site slogan which is customarily displayed by themes near the site logo or site name, and is also regularly added to news feeds and site e-mails as part of the site's identity.
Think up a good slogan! This is the biggest stumbling block to getting this recipe right.
Adding a slogan to a theme involves the following steps:
- Navigate to
admin/settings/site-information
(Home | Administer | Site configuration | Site information). - Locate the Slogan textfield and add the slogan here as shown in the following screenshot:
- Click on the Save configuration button at the bottom of the page to save our changes.
- Now, navigate to
admin/build/themes
(Home | Administer | Site building | Themes). - Click on the Configure tab at the top of the page.
The resulting page should have multiple tabs: one titled Global settings which affects all themes and others representing each enabled theme. Configuration options under the Global settings tab serve as the site's default settings for all themes while equivalent settings within each theme's tab work as overrides for the global settings.
- On the Global settings page, look for the Site slogan setting in the Toggle display section and ensure that it is checked.
- Click on the Save configuration button to save our changes.
Drupal saves the provided slogan as a configuration setting in the database. The theme system makes this setting available as a variable to the theme which outputs it accordingly when the page is being rendered.
In the following screenshot, we can see that the slogan is enabled and is displayed below the logo and name of the site.

Besides the site slogan, other site variables are also available on the theme configuration pages.
- Drupal 7 Module Development
- Expert Cube Development with Microsoft SQL Server 2008 Analysis Services
- Flash CS6標準教程(全視頻微課版)
- Premiere Pro 2022從新手到高手
- Android從入門到精通
- Vue.js快速入門
- 中文版After Effects 2022基礎教程
- 3dsMax 2018動畫制作基礎教程(第4版)
- CINEMA 4D R20完全實戰技術手冊
- AutoCAD 2016中文版基礎教程(全圖解視頻版)
- Learning the Yahoo! User Interface library
- TopSolid Wood軟件設計技術與應用
- 魔法詞典:AI繪畫關鍵詞圖鑒(Midjourney版)
- Quality Assurance for Dynamics AX-Based ERP Solutions
- 平面設計師實戰教程