Last active
December 22, 2016 02:52
-
-
Save surefirewebserv/372972a3e7af817f76077787c95f3b5e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?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