Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #280259

    Can the homepage of my website have a different header and menu setup than the rest of the pages?

    #280264

    Hey!

    Try using this plugin to set different menus per page:
    https://wordpress.org/plugins/zen-menu-logic/

    Best regards,
    Josue

    #280282

    Great suggestion–will that allow me to put a different header image on certain pages, or just customize the menu setup?

    #280285

    To change the logo per page, you’d need to use a code like this in functions.php:

    function av_change_logo($logo, $use_image, $headline_type, $sub, $alt, $link){
    
    	if(is_front_page()){
    		$logo_url = "_FRONT_PAGE_LOGO_URL_HERE_";
    	}
    
    	if($dimension === true) $dimension = "height='100' width='300'"; 
    	if(empty($logo_url)) $logo_url = avia_get_option('logo');
    
    	$logo = "<img {$dimension} src='{$logo_url}' alt='{$alt}' />";
    	$logo = "<$headline_type class='logo bg-logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>";
    	
    	return $logo;
    }
    add_filter('avf_logo_final_output', 'av_change_logo', 100, 6);

    Cheers!
    Josue

    #281201

    Thank you.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Different Headers’ is closed to new replies.