Created
June 2, 2016 16:11
-
-
Save gera3d/df7706940f577b2168f29ed4ab6cfb50 to your computer and use it in GitHub Desktop.
Instructions Second Language - Rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add Sidebar with Menu just for this page type / If Instructions Second Language is in place then add that menu if not add Instructions | |
add_action( 'genesis_before_sidebar_widget_area', 'nuvo_add_custom_menu' ); | |
function nuvo_add_custom_menu () { | |
echo '<div class="spacer10"></div><div class="widget-wrap col-xs-6 col-md-12">'; | |
if ( is_nav_menu( 'Instructions Second Language' ) ) { | |
wp_nav_menu( array('menu' => 'Instructions Second Language' )); | |
} else { | |
wp_nav_menu( array('menu' => 'Instructions' )); | |
} | |
echo '</div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment