- This topic has 15 replies, 4 voices, and was last updated 5 years, 3 months ago by
Tom.
-
AuthorPosts
-
December 8, 2016 at 1:58 pm #252829
Johannes
Hi, I am not able to disable the Primary navigation ( I try to do it from the edit page – disable elements ) from showing up in mobile view.
regards
JohannesDecember 8, 2016 at 7:51 pm #252870Tom
Lead DeveloperLead DeveloperInteresting, you’re correct – this is an issue.
On that page, you can do this:
@media (max-width: 768px) { .menu-toggle { display: none; } }
I’ll get this added into the next version ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentDecember 9, 2016 at 1:09 am #252926Johannes
Thank you.
I can not make this happen.
The code you give me should do this on all pages?
If page id is 4, how does CSS code look like then ?regards
JohannesDecember 9, 2016 at 4:54 am #252975Jamal
You can install Tom’s Simple CSS plugin and add the code on that particular page
https://generatepress.com/knowledgebase/adding-css/Alternatively, you can do this:
@media (max-width: 768px) { .page-id-4 .menu-toggle { display: none; } }
Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.
December 9, 2016 at 5:25 am #252986Johannes
Hi, as I mentioned this code does not do the trick. The mobile version of the primary menu still appears when visiting the page from mobile or other small screens.
@media (max-width: 768px) {
.menu-toggle {
display: none;
}
}regards
JohannesDecember 9, 2016 at 5:51 am #252990Jamal
Sorry but have you tried putting the code in simple css? If it still doesn’t work, would you mind sharing your site link?
Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.
December 9, 2016 at 6:25 am #253000Johannes
Hi Jamal,
Here it is: http://www.allnor.no/bbtest/
On this page both Primary and Secondary navigation is disabled in admin. It work ok on wide window browsers but on small browser windows the Primary navigation occurs. And yes the code is added in simple CSS.
This website is only for testing purposes.
regards
JohannesDecember 9, 2016 at 10:23 am #253044Tom
Lead DeveloperLead DeveloperAh, you’re using the mobile header.
In that CSS, replace
.menu-toggle
with.mobile-header-navigation
.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentDecember 9, 2016 at 3:59 pm #253154Johannes
Hi, I had to add the !important code. now it works ok.
When will this bug be fixed?regards
JohannesDecember 9, 2016 at 10:26 pm #253240Tom
Lead DeveloperLead DeveloperIn GP Premium 1.2.93 ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 27, 2017 at 11:19 pm #270180Alex
Hey Tom,
I haven’t been able to disable mobile navigation on my site using both the .menu-toggle and .mobile-header-navigation. I have been putting it in the Additional CSS area in the WordPress Customizer. Should I be putting it somewhere else? My website is htt://www.narra.life/homev3
Thanks!
January 27, 2017 at 11:42 pm #270189Tom
Lead DeveloperLead DeveloperAre you wanting the “Login” link to still display?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 28, 2017 at 8:29 am #270506Alex
Actually I was looking to disable the navigation entirely, so both the logo and the Login… and the toggle. At the very least, I need the logo removed. It is too big on mobile.
January 28, 2017 at 8:32 am #270521Tom
Lead DeveloperLead DeveloperAh, that’s much easier.
This should do it:
@media (max-width: 768px) { .main-navigation { display: none; } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 28, 2017 at 8:36 am #270529Alex
Wow that was quick, you rock!
-
AuthorPosts
- You must be logged in to reply to this topic.