Skip to content

Instantly share code, notes, and snippets.

@brycejacobson
Created August 30, 2013 18:32
Show Gist options
  • Save brycejacobson/6392937 to your computer and use it in GitHub Desktop.
Save brycejacobson/6392937 to your computer and use it in GitHub Desktop.
Genesis filter classes in content area.
<?php
//* do not include php tag
add_filter( 'genesis_attr_content', 'custom_add_content_attr' );
function custom_add_content_attr( $attributes ){
// add itemscope
$attributes['class'] = 'content first two-thirds';
// return the attributes
return $attributes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment