Skip to content

Snippet: Add or Remove Classes From The Header

/**
 * Add/Remove classes from the main header wrap
 *
 * @link http://totalwptheme.com/docs/snippets/header-classes/
 *
 */
function myprefix_header_classes( $classes ) {

	// Add visibility class
	$classes[] = 'visible-desktop';

	// Return classes
	return $classes;

}
add_filter( 'wpex_header_classes', 'myprefix_header_classes' );
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