Archived topic
Slideout menu on front page only
7 replies · Started by C-Office srls on April 5, 2017
There is a way to show the slideout hamburger icon only on front page and desktop only?
TIA
Simone.
Hi Simone,
Try this CSS:
.slideout-toggle {
display: none;
}
.home .slideout-toggle {
display: block;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Can you provide a link to your site if this doesn't work?
It works, tnks a lot!
You're welcome!
There is a small glitch in this solution.
My homepage have the toggle shown = ok.
other pages not shown the toggle = ok.
But if i scroll the page and the sticky menu appears, the toggle is shown even in other pages.
Hmm I just tested the code and it should work for sticky navigation as well.
Can you link me to the site?
Thanks!
The site is under development and you should modify your hosts file or use a vhost extension in the browser with the following parameters to be able to view it.
160.153.16.40 dev.fondazionetitobalestra.org
Try this:
#sticky-navigation .slideout-toggle {
display: none;
}