Last active
December 20, 2015 20:19
-
-
Save bradpotter/6189521 to your computer and use it in GitHub Desktop.
Add Attributes for Mobile Navigation Menu
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_filter( 'genesis_attr_nav-mobile', 'gst_attributes_nav_mobile' ); | |
/** | |
* Add Attributes for Mobile Navigation Menu. | |
* | |
* @author Brad Potter | |
* | |
* @link http://www.bradpotter.com | |
* | |
* Based on code from the StudioPress Genesis Framework 2.0 | |
*/ | |
function gst_attributes_nav_mobile( $attributes ) { | |
$attributes['role'] = 'navigation'; | |
$attributes['itemscope'] = 'itemscope'; | |
$attributes['itemtype'] = 'http://schema.org/SiteNavigationElement'; | |
return $attributes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment