I understand that if I have my secondary nav set to above header and change this code snippet to generate before main content, this should work. I am assuming this is done in function.php? I am wondering is this also possible to do by creating a new hook element?
To use a hook:
1. Set Navigation Location to No Navigation in Customizer > Layout > Secondary Nav.
2. Create a Hook Element, Select your Hook, Check Execute PHP, Set your display rules.
3. Add this to content: