skip to Main Content

Snippet: Change 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.

 * Modifies the default icon box heading classes.
 * @link
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 child theme's functions.php file or via a plugin (we recommend WPCode)
Back To Top