Snippets: Alter The Page Header Style

/**
 * Example for changing the page header styles
 * Available styles: centered, centered-minimal, hidden, background-image
 *
 */
add_filter( 'wpex_page_header_style', function( $style ) {

	// Change page header style for portfolio posts
	if ( is_singular( 'portfolio' ) ) {
		$style = 'centered';
	}

	// Return style
	return $style;

}, 20 );
All PHP snippets should be added via a child theme's functions.php file.