I’m trying to get the roots.io theme working together with bedrock. Everything seems to work except for the ‘primary_navigation’. This just won’t show up.
I did some debugging and the only way I can get the menu to work is commenting out this line in
wp-includes/nav-menu-templates.php (L 376):
$nav_menu = apply_filters( 'wp_nav_menu', $nav_menu, $args );
To reproduce: install bedrock, add roots.io theme and add a menu. This won’t show up for me on the frontend.
Anyone else experiencing the same issue? And is there a fix for this?
Have you gone to the menus section of the dashboard and made sure that a menu is set for the primary navigation?
Yes, @Foxaii. When I comment out this line
$nav_menu = apply_filters( 'wp_nav_menu', $nav_menu, $args ); the menu shows up.
We don’t use the
wp_nav_menu filter in Roots and I cannot replicate the issue. Have you made any customisations or installed any plugins?
I’m using some plugins, but if I’m switching to a default WP theme (Twenty Thirteen for example) the menu is just working.
This line is where it goes wrong:
Aaargh! This plugin is causing the trouble: https://github.com/JonMasterson/WP-Font-Awesome-Icons. @Foxaii: try installing that plugin and see the menu disappear (without any notice).
Should I just not use that plugin or is there a workaround for this?
There is an option for the WP-Font-Awesome-Icons plugin which lets you “Disable Font Awesome icons on the front end of your site.”. If you check this option box the menu works while this plugin is activated.
Thanks @Foxaii for point me into the right direction!
You’re welcome. I’m glad it’s sorted.