New Landing How can we help? Themeforest Theme Support Dante Change Maintenance Mode Title

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Dante
  • #32936
    wccberg
    Member
    Post count: 12

    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

    #32937
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    We’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

    #32938
    wccberg
    Member
    Post count: 12

    Ok thanks. In the meantime where can I change WordPress > Error to My Website > Coming Soon

    Thanks

    #32966
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    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

    #36415
    dschertz
    Member
    Post count: 42

    Ed, 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!

    #36565
    Tahir – SUPPORT
    Member
    Post count: 1212

    Hi ,
    Ed will be back on 13th and surely look into it.

    Thank you for your patience.

    -Tahir

    #37123
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Got 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

    #38084
    scuissiatto
    Member
    Post count: 20

    When its done will this be added to Neighborhood theme too?

    #38113
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    @scuissiatto – it is on the list ๐Ÿ™‚

    – Ed

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register