I’m using the eleven40 theme and I have a fixed header. When I add the code below to my functions.php to reposition the secondary menu, it automatically places it above the header, not below. I want the secondary menu to be below the header. How do I do this?
/** Reposition the secondary navigation menu */
Here’s my website: www.charlesspecht.com
I’m not sure I understand why you’ve added that to your functions.php, but that code would have the result you are describing. It’s going to move the subnavigation above the header.
The subnavigation is, by default, below the header. So you shouldn’t need to add anything to functions.php.
Sorry, but I should have given more information. When I add the code for the primary or the secondary menus, they both end up at the top of the header. I can’t figure how to get either of them below the header.
So – forgive me if I am missing something. Why are you adding any code to your functions.php at all? The secondary menu should be below the header by default.
I can’t imagine this would be a plugin issue, but just in case – did you try deactivating your plugins to see if that resolved the problem?
Without adding any of the above code to the functions.php, both the primary and secondary menus are located at the top of the screen but “behind” my header (which is transparent), when either are activated. I’m not sure why the secondary menu doesn’t appear below the header, which is why I thought about adding that code to the functions.php, which I found in the StudioPress code tutorials.
I’m not sure what to try next.
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.