Skip to content

Snippet: Add Custom Button Styles

The 'wpex_button_styles' will allow you to add new button styles to the various Total Visual Composer modules such as the Portfolio Grid filter, the Total button, the pricing table...etc.

/*
 * Add new button styles
 *
 * IMPORTANT: This will add the options to the various button style dropdowns
 * You still need to add your own Custom CSS to style the button how you want it.
 *
 */
function myprefix_wpex_button_styles( $styles ) {
	$styles['myprefix-custom-button-style'] = esc_html( 'My Custom Button Style', 'total' );
	return $styles;
}
add_filter( 'wpex_button_styles', 'myprefix_wpex_button_styles' );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top