Archived topic
Hamburger Menu on Desktop / Standard page design
1 reply · Started by Patrick on October 10, 2016
Hi Tom,
another questions:
1) I like to have the hamburger menu on desktop too. Like to show the hamburger everytime, no line with textlinks in header. How can I do this?
2) Is there an option to define that on each page the title and the header should be deactivated? Or have I setup this for each page separately?
Thanks and regards
Patrick
Hi Patrick,
1. This is possible using the Slideout menu in Menu Plus.
If you want to use the default mobile menu, you can initiate it at a wider width with this CSS: https://gist.github.com/generatepress/c23aef2d05807c39bb32
Just adjust the 768px to something higher.
2. By page title do you mean the content title or the site title?
If content title, you can remove it from all pages with this:
add_filter( 'generate_show_title', 'tu_remove_page_titles' );
function tu_remove_page_titles()
{
if ( is_page() )
return false;
return true;
}
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
As for the header area, you can do this with CSS:
.site-header {
display: none;
}
Adding CSS: https://generatepress.com/knowledgebase/adding-css/
Hope this helps :)