Skip to content

Add Header WITH PHP

I don’t need this anymore but i want it to be backed up. This is fdor the Total theme and uses the dynamic templates functionality.


//HEADER: HEADER AFTER TITLE/ BREADCRUMB NOT ON HOME
function header_after() {
	if ( is_singular( 'projekt' ) ) {
		$template = 9191; 
	} else if ( is_singular( 'veranstaltung' ) ) {
		$template = 9535; 
	} else if (!is_front_page() ) {
		$template = 123; 
	}  
	echo '<div class="container">'.do_shortcode( '[wpex_template id="' . $template . '"]' ).'</div>';

}
add_action( 'wpex_hook_header_after', 'header_after', 40 );
An den Anfang scrollen