diff --git a/functions.php b/functions.php index 93a6194..864a906 100644 --- a/functions.php +++ b/functions.php @@ -24,6 +24,7 @@ $understrap_includes = array( '/class-wp-bootstrap-navwalker.php', // Load custom WordPress nav walker. '/woocommerce.php', // Load WooCommerce functions. '/editor.php', // Load Editor functions. + '/deprecated.php', // Load deprecated functions. ); foreach ( $understrap_includes as $file ) { diff --git a/inc/deprecated.php b/inc/deprecated.php new file mode 100644 index 0000000..a9608f6 --- /dev/null +++ b/inc/deprecated.php @@ -0,0 +1,49 @@ + 6 ) : + // Four widgets per row if there are exactly four or more than six + $widget_classes .= ' col-md-3'; + elseif ( 6 == $widget_count ) : + // If two widgets are published + $widget_classes .= ' col-md-2'; + elseif ( $widget_count >= 3 ) : + // Three widgets per row if there's three or more widgets + $widget_classes .= ' col-md-4'; + elseif ( 2 == $widget_count ) : + // If two widgets are published + $widget_classes .= ' col-md-6'; + elseif ( 1 == $widget_count ) : + // If just on widget is active + $widget_classes .= ' col-md-12'; + endif; + return $widget_classes; + endif; + } +} \ No newline at end of file