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/8ae72a00c1683ea5b0de27e686888ff2 to your computer and use it in GitHub Desktop.
Save braddalton/8ae72a00c1683ea5b0de27e686888ff2 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 = academy_alternate_widget_area_class( $id );
genesis_widget_area( $id, array(
'before' => "<div id=\"$id\" class=\"front-page-4\"><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