Created
July 21, 2013 15:43
-
-
Save SanjeevMohindra/6048914 to your computer and use it in GitHub Desktop.
Correct the Top Navigation in Metro theme with Genesis 2.0
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
// Adds widget area before the .menu on #subnav | |
add_filter( 'genesis_do_subnav', 'child_do_subnav_widget', 10, 2 ); | |
function child_do_subnav_widget( $subnav_output, $subnav ){ | |
ob_start(); | |
genesis_widget_area( 'subnav-left', array( | |
'before' => '<div class="subnav-left widget-area">', | |
'after' => '</div>' | |
) ); | |
$widget_area = ob_get_clean(); | |
return str_replace( $subnav, $widget_area . $subnav, $subnav_output ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment