Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Change Maintenance Mode Title
New Landing › How can we help? › Themeforest Theme Support › Dante › Change Maintenance Mode Title
- This topic has 8 replies, 5 voices, and was last updated 10 years by
Swift Ideas – Ed.
-
Posted in: Dante
-
November 23, 2013 at 1:24 am #32936
I would like to be able to change it so it doesnt say WordPress > Error and would also like to right coming soon here and perhaps add shortcodes if possible to Facebook and Twitter Profiles.
Thanks in Advance
November 23, 2013 at 1:47 am #32937We’re going to look into the possibility of being able to set a custom page as the holding page, with no header/footer, and obviously give you the ability to create whatever content you like, such as a countdown or text/images.
Hoping to get this added quite soon, as it’s high on our list ๐
– Ed
November 23, 2013 at 2:00 am #32938Ok thanks. In the meantime where can I change WordPress > Error to My Website > Coming Soon
Thanks
November 23, 2013 at 10:02 am #32966Just 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
December 11, 2013 at 7:29 am #36415Ed, is this still high on the list of possibilities. I’ve been searching for hours to try to find a plugin that would allow me to use any of my created pages as maintenance page. There are ZERO out there and I hate coding things that could ultimately mess up my site. If there was a way for us to use one of our pages for maintenance mode that.would.be.awesome.
Here’s my vote to move this directly to the top of the to-do list!
December 11, 2013 at 2:05 pm #36565Hi ,
Ed will be back on 13th and surely look into it.Thank you for your patience.
-Tahir
December 14, 2013 at 7:30 pm #37123Got this on the list for v1.2, will try my best to get it added (as well as the page template with no header/footer).
– Ed
December 18, 2013 at 12:24 pm #38084When its done will this be added to Neighborhood theme too?
December 18, 2013 at 1:01 pm #38113@scuissiatto – it is on the list ๐
– Ed
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.