skip to Main Content

Use Overlay Header Logo for Sticky Logo

By default the Total theme uses the default header logo setup in the Customizer for the sticky header on ALL overlay pages. The reason for this is most the time customers use the overlay logo option in the page settings because the color of their default logo doesn't look good on the overlay header style.

For example if my default logo is black I may want to have my overlay header logo set to a white version so it's visible over a background image. But once the header becomes sticky it should switch back to the original logo because the sticky header will turn white (as per the default header design). I even have that in my commenting in the code -

add_filter( 'wpex_fixed_header_logo', function( $logo ) {
	if ( wpex_has_overlay_header() ) {
		$logo = wpex_get_mod( 'fixed_header_logo' );
	return $logo;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)
Back To Top