Can the homepage of my website have a different header and menu setup than the rest of the pages?
Hey!
Try using this plugin to set different menus per page:
https://wordpress.org/plugins/zen-menu-logic/
Best regards,
Josue
Great suggestion–will that allow me to put a different header image on certain pages, or just customize the menu setup?
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
Thank you.