Home › Forums › Support › Disable Primary Navigation on Tag Conditional This topic has 3 replies, 2 voices, and was last updated 4 years, 10 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 3, 2019 at 8:05 am #918642 Thomas I have a plugin that allows pages to have tags and i want to disable the primary navigation menu with all pages tagged with the term “podcast”. add_filter( 'generate_navigation_location','tu_move_navigation' ); function tu_move_navigation( $location ) { if ( has_term( 'podcast' ) ) { return ''; } return $location; } For some reason this is not working for me. June 3, 2019 at 8:24 am #918660 LeoStaff Customer Support Hi there, I believe the Layout Element should be able to do that: https://docs.generatepress.com/article/layout-element-overview/#disable-element Give it a shot and let me know 🙂 June 3, 2019 at 8:34 am #918677 Thomas Generatepress is just too powerful… so much easier.. June 3, 2019 at 8:37 am #918680 LeoStaff Customer Support Glad you are enjoying it! Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In