Is there a way to add a custom maintenance page from theme folder?
I have the code for the activate maintenance mode but i can't get the styling..
function activate_maintenance_mode() {
if ( !(current_user_can( 'administrator' ) || current_user_can( 'super admin' ))) {
wp_die(
'<h1>Website Under Maintenance</h1><p>Hi, our Website is currently undergoing scheduled maintenance.
Please check back very soon.<br /><strong>Sorry for the inconvenience!</strong></p>', 'Maintenance Mode');
}
}
add_action('get_header', 'activate_maintenance_mode');
Thanks in advance, Nikola.