Comments (5)
Hello.
The right menu not only shows information related to blog pages (taxonomies, archives, feeds, etc, only if the corresponding plugins are activated), but also shows the top menu when browsing on mobile devices.
I wonder why you would want to remove that menu on the right. However, this involves a deep remodeling of the code, which, at the moment, is not in my plans.
If you do some digging into the code you can see that that menu loads in the {% block menu %}
block in different twig templates. You can play commenting on those blocks to see if the result is what you are looking for.
On the other hand, menu_login
is not to show or hide the menu icon on the right, but to show an icon in the top bar in case you want to enable multi-user access for private pages available in Grav.
from grav-theme-future2021.
Hello,
Thanks for the feedback. Indeed I did some test from a smartphone + taxonomies plugins, I see what your mean
In fact my goal is not to remove the menu the menu. But just to hide the login button to my visitors.
Editors will be able to login in by the grav / admin panel, thus I want to maximize security and avoid login attempts as much as possible.
Especially as I don't understand what this button is really for. Knowing that once connected it doesn't allow you to edit pages.
from grav-theme-future2021.
The login that is done through the Login button is to access private pages previously defined as such in the security tab of each page. https://learn.getgrav.org/17/admin-panel/page/security
To prevent a user from accessing the administration panel you just have to disable the Admin plugin. But that would prevent you from also accessing and having to do all the work of managing pages directly in the .md files of each page in your folders.
To have an address to the admin panel other than /admin you should set an alternative route in the admin.yaml file (in the /user/config/plugins folder) by changing route: /your_custom_route
from grav-theme-future2021.
Hello,
Workarround was super easy , to remove the "login button" from the right bar
in templates\partials\sidebar_right.html.twig
Comment from line 61 -> 73.
from grav-theme-future2021.
Hello.
I see that in the end you have been able to adapt the theme to your needs. At first I thought you wanted to remove the menu button from the right sidebar, but it was a mix-up from the screenshots you showed.
Well, if everything goes well, can we close this issue?
from grav-theme-future2021.
Related Issues (20)
- Issues with login HOT 4
- HTML/CSS bugs HOT 9
- Issues with breadcrumbs and pagination in blog HOT 1
- Social Icons not visible HOT 10
- Bug with new "Show Image" functionality in default.html.twig HOT 3
- No Sidebar with demo files. HOT 5
- Faulty heading formatting HOT 6
- Width issue HOT 10
- Miniposts Template uses page object, instead of minipost object to parse date HOT 2
- Donation BuyMeACoffee HOT 3
- Sticky menu for blog posts HOT 7
- Suggestion: serve google fonts locally HOT 1
- Cannot show any entry inside the "Featured" section HOT 4
- sort filter causes error when taxonomy is empty HOT 2
- suggestion HOT 2
- Improve Portfolio customization HOT 1
- Logo in image format to be implemented in the header HOT 2
- Demo site HOT 2
- Remove the menu 'hamburger' from the top bar HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grav-theme-future2021.