Title: adding title and description to header php
Last modified: August 19, 2016

---

# adding title and description to header php

 *  [digitalartempire](https://wordpress.org/support/users/digitalartempire/)
 * (@digitalartempire)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-title-and-description-to-header-php/)
 * hei my all in one seo pack doesmnt seem to have added title nor description
 * here is the code please pleae tell me where to add these cos i dont want to get
   it wrong thanks ben
 *  <?php if( is_front_page() ) : ?>
    <title><?php bloginfo(‘name’); ?> |<?php bloginfo(‘
   description’);?></title> <?php elseif( is_404() ) : ?> <title>Page Not Found 
   | <?php bloginfo(‘name’); ?></title> <?php elseif( is_search() ) : ?> <title>
   <?php print ‘Search Results for ‘ . wp_specialchars($s); ?> | <?php bloginfo(‘
   name’); ?></title> <?php else : ?> <title><?php wp_title($sep = ”); ?> | <?php
   bloginfo(‘name’);?></title> <?php endif; ?>

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-title-and-description-to-header-php/#post-1197565)
 * Try replacing:
 *     ```
       <?php if( is_front_page() ) : ?>
       <title><?php bloginfo('name'); ?> |<?php bloginfo('description');?></title>
       ```
   
 * with:
 *     ```
       <?php if( is_front_page() || is_home() ) : ?>
       <title><?php bloginfo('name'); ?> |<?php bloginfo('description');?></title>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘adding title and description to header php’ is closed to new replies.

## Tags

 * [header.php](https://wordpress.org/support/topic-tag/header-php/)
 * [title](https://wordpress.org/support/topic-tag/title/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/adding-title-and-description-to-header-php/#post-1197565)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
