Last active
August 29, 2015 14:02
-
-
Save jrstaatsiii/bb031f62950b918c0154 to your computer and use it in GitHub Desktop.
Is there a better way to filter Genesis structural class names?
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 | |
| /* | |
| * How do I append a class "row" to the class "site-header" as opposed to recreating "site-header" like I am here? | |
| * | |
| */ | |
| add_filter( 'genesis_attr_site-header', 'ssm_site_header' ); | |
| /* | |
| * Add the appropriate foundation class to site-header | |
| * | |
| */ | |
| function ssm_site_header() { | |
| $attributes['class'] = 'site-header row'; | |
| return $attributes; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or an easier way so that you don't have to mess with any markup.
ex.
.wrap {
@extend .row;
}
.content {
@extend .large-9, .columns;
}