Just double checked the function, and it is possible to provide a title. I’ve set this to the site name for future updates, but you can override it by adding the following to your child theme functions.php file:
function sf_maintenance_mode() {
$options = get_option('sf_dante_options');
$custom_logo = $custom_logo_output = $maintenance_mode = "";
if (isset($options['custom_admin_login_logo'])) {
$custom_logo = $options['custom_admin_login_logo'];
}
if ($custom_logo) {
$custom_logo_output = '<img src="'. $custom_logo .'" alt="maintenance" style="margin: 0 auto; display: block;" />';
} else {
$custom_logo_output = '<img src="'. get_template_directory_uri() .'/images/custom-login-logo.png" alt="maintenance" style="margin: 0 auto; display: block;" />';
}
if (isset($options['enable_maintenance'])) {
$maintenance_mode = $options['enable_maintenance'];
} else {
$maintenance_mode = false;
}
if ($maintenance_mode) {
if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) {
wp_die($custom_logo_output . '<p style="text-align:center">'.__('We are currently in maintenance mode, please check back shortly.', 'swiftframework').'</p>', get_bloginfo( 'name' ));
}
}
}
add_action('get_header', 'sf_maintenance_mode');
You’ll want to edit:
wp_die($custom_logo_output . '<p style="text-align:center">'.__('We are currently in maintenance mode, please check back shortly.', 'swiftframework').'</p>', get_bloginfo( 'name' ));
to
wp_die($custom_logo_output . '<p style="text-align:center">'.__('We are currently in maintenance mode, please check back shortly.', 'swiftframework').'</p>', get_bloginfo( 'name' ) . '> Coming soon');
For the message you want.
– Ed