Snippets: Alter The Default Heading Classes for Icon Boxes

The following sample shows how you can use theme filters to alter the default classes applied to the Icon Box module in the Total theme. In this example we show how you can return new Total 5.0 utility classes to alter the default font size and bottom margin for the Icon Box Heading.

// My custom default classnames for the icon box heading.
// You can also target the vcex_icon_box_icon_class and vcex_icon_box_content filters to alter the classes of these elements.
add_filter( 'vcex_icon_box_heading_class', function() {
	return array(
		'wpex-heading',  // Global theme class for headings so that typography settings apply to them
		'wpex-text-2xl', // Change font size to 2xl (default is wpex-text-md)
		'wpex-mb-20',    // Add a 30px bottom margin (default is 10px)
} );
All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)