We have a multisite install that requires a global navigation to display at the top of all of our child sites of our multisite install (above the header). I’ve made sure that the global_nav.php file is located in an inc directory located within the child theme folder. In the functions.php file I’ve tried to include the global navigation using the following:
/* Include global navigation*/
add_action( 'generate_before_header','global_nav' );
function global_nav() { ?>
include_once ( get_stylesheet_directory() . '/inc/global_nav.php' );
<?php }
The hook seems to work but just displays the following code and not the menu:
include_once( get_stylesheet_directory() . ‘/inc/global_nav.php’ );
I’m sure its something simple I’m missing but I just don’t see it.