This morning while browsing the Genesis support forums, I came across a question on how to “Aligning last menu item to the right“. I knew Genesis had the Primary Navigation Extra option to add an additional item to your primary menu through the Genesis options menu.
I began digging through the Genesis source code and found the Genesis ‘wp_nav_menu_items’ filter. By creating a custom callback for the filter, I was able to create my own custom Primary Navigation Extra.
This code can be copied into your Genesis child theme’s functions.php file.
Product developer at WPEngine and runner from Hampshire, Illinois. I work with php a lot; Spending most of my time digging into source code to see how it all works. You can find me on Twitter @rfmeier.
View all posts by rfmeier