Closed carrieforde closed 9 years ago
The button component now has five core styles, three corner styles, two border weights, and a set of default colors to choose from.
Color options are easily customized within a theme's functions.php files using the mm_get_available_colors_for_vc filter:
functions.php
mm_get_available_colors_for_vc
add_filter( 'mm_get_available_colors_for_vc', 'xxx_set_theme_colors' ); /* * Set theme color options for Mm components. * * @return array The array of theme colors. */ function xxx_set_theme_colors() { $colors = array( __( 'Default', 'xxx-theme' ) => 'default', __( 'Blue', 'xxx-theme' ) => 'blue', __( 'Green', 'xxx-theme' ) => 'green', ); return $colors; }
Next up is adding functionality to add an icon, and I'd also like to add a button widget.
Now that's a pull request. :+1:
The button component now has five core styles, three corner styles, two border weights, and a set of default colors to choose from.
Color options are easily customized within a theme's
functions.php
files using themm_get_available_colors_for_vc
filter:Next up is adding functionality to add an icon, and I'd also like to add a button widget.