Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created January 14, 2018 05:29
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 braddalton/647933913d64127d9dd1272c0679d742 to your computer and use it in GitHub Desktop.
Save braddalton/647933913d64127d9dd1272c0679d742 to your computer and use it in GitHub Desktop.
Academy Pro change all flexible layouts to Front Page 4 Style https://wp.me/p1lTu0-hk7
function academy_do_widget( $id ) {
$count = academy_count_widgets( $id );
$columns = ( 'front-page-4' === $id ) ? academy_alternate_widget_area_class( $id ) : academy_widget_area_class( $id );
genesis_widget_area( $id, array(
'before' => "<div id=\"$id\" class=\"$id\"><div class=\"flexible-widgets widget-area $columns\"><div class=\"wrap\">",
'after' => "</div></div></div>",
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment