Direkt zum Inhalt

Newsletter Serie mit 22 Ratschlägen zum Thema Online Marketing und Inbound Marketing.
Anmelden

 

Theming the maintenance page in Drupal 7

 
Stage Image: 
Copy the default template file from modules/system/maintenance-page.tpl.php to your theme template folder sites/all/themes/YourThemeName/templates/maintenance-page.tpl.php.

Change it the way you want. The text you entered in the Administration UI admin/config/development/maintenance will be available as

<?php print $content; ?>

in this template file.

Add the following configuration

$conf['maintenance_theme'] = 'YourThemeName';

to your sites/default/settings.php file.

Then clear the cache

drush cc all

That's it!

You can also modify the offline screen when the database connection fails by creating the file sites/all/themes/YourThemeName/templates/maintenance-page--offline.tpl.php

More information: http://api.drupal.org/api/drupal/includes!theme.inc/function/template_preprocess_maintenance_page/7

Haben Sie eine Frage?

Jetzt Rückruf anfordern.

Haben Sie eine Frage?

Jetzt Rückruf anfordern.