Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Seeing maintenance page as admin
New Landing › How can we help? › Themeforest Theme Support › Dante › Seeing maintenance page as admin
- This topic has 29 replies, 5 voices, and was last updated 9 years by Kyle – SUPPORT.
-
Posted in: Dante
-
March 6, 2015 at 3:59 pm #155625
Hi @marcgu,
Can’t seem to find any reason at all why this would be so, unless it’s something hosting specific which is causing the WordPress permissions functions to return false values. If you enable the included child theme, and then add this code to the functions.php file, it will remove the admin check and just set it to display the message for logged out users:
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 == 2) { $holding_page = __($options['maintenance_mode_page'], 'swiftframework'); $current_page_URL = sf_current_page_url(); $holding_page_URL = get_permalink($holding_page); if ($current_page_URL != $holding_page_URL) { if ( !is_user_logged_in() ) { wp_redirect( $holding_page_URL ); exit; } } } else if ($maintenance_mode == 1) { if ( !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');
Hope that helps.
– Ed
March 6, 2015 at 4:34 pm #155633Hi Ed,
Thanks! I quickly tried to do so now, but the code seemed to only mess up my admin panel… :/ Will continue trying on Monday, I’ll get back to you then!
March 6, 2015 at 6:29 pm #155651This reply has been marked as private.March 8, 2015 at 9:35 am #155756This reply has been marked as private.March 9, 2015 at 4:16 pm #156049yes, but I couldn’t login.
Need the ftp servername. Is it http://ftp.one.com ?-Rui
March 9, 2015 at 4:31 pm #156052This reply has been marked as private.March 9, 2015 at 11:47 pm #156120This is not working.
https://www.dropbox.com/s/evd8h0dgq9hxwro/ftp_settings.png?dl=0Please test it before providing it. Contact you host if you are not sure what are the ftp account details.
-Rui
March 11, 2015 at 11:25 am #156499This reply has been marked as private.March 11, 2015 at 11:52 pm #156681Hi,
Managed to login with those ftp details but unfortunately didn’t found anything that could cause in your files structure.
Maybe it’s better to start in a fresh install.
-Rui
March 12, 2015 at 6:31 am #156730Alright, thanks nonetheless! And you mean only reinstalling the theme right?
If I do that, then I guess the only things I have to redo is the theme-specific options. As long as all pages remain the same in ‘swift page builder’, that’s very manageable!
March 13, 2015 at 11:07 pm #157289Yes, you can try that. If it doesnt work it’s because it’s an higher problem with your WordPress install.
-Rui
March 16, 2015 at 7:34 am #157524Problems are pretty much fixed now! Thanks guys 🙂
March 16, 2015 at 8:12 am #157538Ok great! No problem
March 16, 2015 at 4:19 pm #157853Sorry to bother you so soon again, but I have three very small questions now! Seemed best to ask them in my current thread.
1. I would like to make the height of the full-width text blocks on the homepage smaller; using extra classes I couldn’t get it small enough, but with the following code (found on your forum) I could:
.full-width-text { padding-bottom: 20px; padding-top: 20px; }
Problem was, the height of all headings on the website changed with this code and I only want it to affect the full-width text blocks on the homepage… but how?
2. For those same text blocks, there is an arrow on the bottom of each. We like that, but on some computers there appears to be a white line separating the arrow from the text block’s background. Is there a way to make this white line disappear?
3. And finally, is there perhaps a code to make the titles of blog posts appear in bold on the main ‘blog page’? I think they need some extra weight, since we don’t use any thumbnails.
Thanks a lot!!
March 16, 2015 at 4:38 pm #157860Hi
As they are different issues please open a separate thread
– Kyle
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.