Archived topic
Move Primary Navigation to above Footer (bottom)
7 replies · Started by Chitika on August 11, 2020
Hello.
I would like my whole primary navigation system moved to the bottom (home and single and archives).
This includes logo, menu, and search function.
If that meant moving the total header to the bottom, that is also ok.
Hi there,
Just to confirm, you only want to do this for the home page, single posts, and all archives? Or for the entire site?
Let me know :)
The entire site.
To make it more clear, I want the entire blue bar at the top to go the bottom above the footer.
This includes - logo, menu, search.
I am not sure whether its the entire header or only the primary navigation to be moved.
Try this PHP snippet:
add_action( 'after_setup_theme', function() {
remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 );
add_action( 'generate_before_footer', 'generate_add_navigation_after_header', 1 );
});
Adding PHP: https://docs.generatepress.com/article/adding-php/
When I added the above code to functions.php file, code is showing at the top. Not expected result.
Is there any other code to be added to the above.
Hi there,
can you add the code so we can see what the problem is ? Or share a screenshot of the issue
@Leo @David. Sorry for the trouble. I pasted it in the wrong account. Now its working. Thanks for the support.
No problem :)