<?php
/*
* If = page is "home", set menu as "menu-home"
* ElseIf = page is not "featured-project", set menu as "menu-page" (default menu for internal pages)
* Else = set menu as "menu-static" (if matched the featured-project page)
*/
echo is_page( 'home' ) ? 'menu-home' : ( !is_page( 'featured-project' ) ? 'menu-page' : 'menu-static' );
?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.