Archived topic
Menu in Footer Questions
1 reply · Started by Ian on January 15, 2021
After following instructions to put a Menu in the footer bar, everything works. Essentially, it's the Primary Menu pulled from inwiside Widgets > Footer Bar. Is there a way to collapse this menu into the hamburger when on mobile? Doesn't seem to behave responsively as the regular Primary Menu.
Also, is there a way to hook code into this footer menu inside fucntions.php like the regular menu using this:
Currently using this:
add_action( 'generate_menu_bar_items', function() {
?>
<span class="menu-bar-item">
Icon here
</span>
<?php
} );
Hi there,
if the Navigation is an exact duplicate of the Primary Nav then you can remove the Widget Nav and then add this PHP Function to your site:
add_action( 'after_setup_theme','db_duplicate_nav_below_footer' );
function db_duplicate_nav_below_footer() {
add_action( 'generate_before_footer', 'generate_add_navigation_after_header', 15 );
}
How to add PHP: https://docs.generatepress.com/article/adding-php/