-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sidebar is still visible in maintenance mode #30
Comments
Solution to this annoying but ignored problem as long as the menu uses a sidebar: Modify maintenance template like this
This should be the default. Depending on your theme you might need to copy and rename the theme's base template to a maintenance-specific version and hide some other menu elements there. |
As themes are completely customizable there’s no way way to know if there is a particular block that needs hiding. The solution is to copy this base template to your theme and modify it for your theme specifically. |
It would really help if you included this explanation and maybe an example in the readme (here and on the login-plugin readme). Hiding the menu is a frequent question, usually with the login plugin. The solution is probably obvious to you but not so much for somebody who just started with grav and is checking whether grav will work with their requirements. |
Could you maybe provide a screenshot of the error? I think you solution is the best one to come up with. However the fix should be placed in the theme, so instead of writing any explanation to fix a theme, you should rather do the fix to the learn2 theme. Simply copy the default template and apply the empty code. |
Editing the README.MD like this would help everyone:
{% extends 'partials/base.html.twig' %} {% block sidebar %} {% block content %}
|
I cannot edit comments on github anymore. I used backticks instead of quotes, sorry about that. |
If I install and activate the maintenance plugin the navigation still shows up. The desired effect in maintenance mode is that you see only the maintenance mode announcement and NOTHING from the site, not even the navigation.
getgrav/grav-theme-learn2#82
The text was updated successfully, but these errors were encountered: