Skip to content

Instantly share code, notes, and snippets.

@surefirewebserv
Last active December 22, 2016 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surefirewebserv/372972a3e7af817f76077787c95f3b5e to your computer and use it in GitHub Desktop.
Save surefirewebserv/372972a3e7af817f76077787c95f3b5e to your computer and use it in GitHub Desktop.
<?php
add_filter( 'genesis_attr_nav-secondary', 'gsbb_menu_second_align_left', 10, 2 );
function gsbb_menu_second_align_left( $attributes, $gs_class ) {
if ($gs_secondary_alignment == 'menu_sencond_align_left'){
$gs_class = "nav-left";
} else if ($gs_secondary_alignment == 'menu_second_align_right') {
$gs_class = "nav-right";
} else if($gs_secondary_alignment == 'menu_second_align_center'){
$gs_class = "nav-center";
}
$attributes['class'] = $gs_class;
return $attributes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment