Below are sample code snippets that should come in handy if you want to 1) programmatically assign custom menus to Primary Navigation Menu and Secondary Navigation Menu theme locations and 2) conditionally display custom sidebars in Primary and Secondary Sidebar areas in Genesis.
One practical use case is when setting up a private/client/membership system.
To display a custom menu named "Primary Navigation - Members" in Primary Navigation location for logged in users
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
Thank you for this interesting post but i wants to do something slightly different. I want show content/primary sidebar/secondary sidebar on the home page whereas, i want content/primary sidebar on the single post. how i can be done? can you help?
See http://www.sridharkatakam.com/apply-layout-genesis-conditionally/
[…] Reference: https://sridharkatakam.com/conditional-display-primary-secondary-navigation-menus-sidebars-genesis/ […]