Skip to content

Instantly share code, notes, and snippets.

@SanjeevMohindra
Created July 21, 2013 15:43
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 SanjeevMohindra/6048914 to your computer and use it in GitHub Desktop.
Save SanjeevMohindra/6048914 to your computer and use it in GitHub Desktop.
Correct the Top Navigation in Metro theme with Genesis 2.0
// 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