functions.php

<?php function get_my_header() { // if is home, which is the front page if(is_home()) { // then get the header-home.php get_header('home'); // else get the normal header.php } else { get_header(); } }

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.