I need to make the pagetitle in the header of the homepage different from that of the interior pages. It seems like a simple php fix but it is over my head. This seemed to be the solution but implementing it gave an error code : PHP if URL equals this then perform action
This is the code I have:
<?php
/**
* The Header for our theme.
*/
?><!DOCTYPE html>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=GFS+Didot'
rel='stylesheet' type='text/css'>
<title><?php wp_title('|', true, 'right'); ?></title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div>
<header class="pagetitle">
<h1>
<a href="<?php echo esc_url(home_url('/')); ?>">
<?php bloginfo('name'); ?>
</a>
</h1>
<nav>
<?php wp_nav_menu(array('theme_location' => 'primary')); ?>
</nav>
</header>
Can someone tell me the if/else statement that will give me one on the homepage and a different on all other pages?