Created
January 14, 2018 05:29
-
-
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
This file contains 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
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