Skip to content

Instantly share code, notes, and snippets.

@seothemes
Created December 10, 2017 22:24
Show Gist options
  • Save seothemes/95e2384446e4fd1b882aa262596794db to your computer and use it in GitHub Desktop.
Save seothemes/95e2384446e4fd1b882aa262596794db to your computer and use it in GitHub Desktop.
Add additional column classes to Genesis Widget Column Classes plugin.
<?php // Do not include this line.
add_filter( 'genesis_widget_column_classes', 'custom_widget_column_classes' );
/**
* Custom column widths.
*
* Adds additional column classes to Genesis Widget Column Classes plugin
* including fifths and full-width classes.
*
* @return array
*/
function custom_widget_column_classes() {
$column_classes = array(
'full-width' => 'full-width',
'one-half' => 'one-half',
'one-third' => 'one-third',
'one-fourth' => 'one-fourth',
'one-fifth' => 'one-fifth',
'one-sixth' => 'one-sixth',
'two-thirds' => 'two-thirds',
'two-fourths' => 'two-fourths',
'two-fifths' => 'two-fifths',
'two-sixths' => 'two-sixths',
'three-fourths' => 'three-fourths',
'three-fifths' => 'three-fifths',
'three-sixths' => 'three-sixths',
'four-fifths' => 'four-fifths',
'four-sixths' => 'four-sixths',
'five-sixths' => 'five-sixths',
);
return $column_classes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment