Archived topic
Use Navigation as Header
3 replies · Started by Christophe on June 18, 2020
I'd like to enable the "Use Navigation as Header" (sticky) option on all pages except for the frontpage (where I have the navigation sticky below the header).
I've been trying to achieve this using Elements but I can not get the site logo displayed inside the navigation bar.
Am I doing something wrong or is this not possible?
Hi there,
Give this PHP snippet a shot:
https://generatepress.com/forums/topic/different-menu-layout-for-homepage/#post-1120165
Adding PHP: https://docs.generatepress.com/article/adding-php/
You'd need to replace true with false.
Works perfectly! Thanks!
just had to change it to
if ( !is_front_page() )
to have the result I had in mind as changing true to false did not seem to work.
No problem :)