Title: Site Title Issue
Last modified: August 31, 2016

---

# Site Title Issue

 *  [JBarham](https://wordpress.org/support/users/jbarham/)
 * (@jbarham)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/site-title-issue/)
 * My site is [http://www.ydeweddings.com](http://www.ydeweddings.com)
 * Had to remove a “mobile page” that was added several years ago. When I removed
   that code, the site title has been messed up ever since.
 * I could only grab part of it….
 * tag based on what is being viewed. */ global $page, $paged; wp_title( ‘|’, true,
 * It should say “Ocala Weddings & Special Events” and the tagline – “Disc Jockey,
   Event Coordination, Master of Ceremonies, Wedding Decor” and those are correct
   in the Customize & Settings sections.
 * I am not the savviest when it comes to this, but I try and occasionally make 
   mistakes like this.
 * Please help! Thanks in advance!

Viewing 1 replies (of 1 total)

 *  [Allison Tarr](https://wordpress.org/support/users/allisonplus/)
 * (@allisonplus)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/site-title-issue/#post-6923680)
 * I believe this should be the code you’re looking to re-implement.
 *     ```
       <title><?php
       	/*
       	 * Print the <title> tag based on what is being viewed.
       	 */
       	global $page, $paged;
   
       	wp_title( '|', true, 'right' );
   
       	// Add the blog name.
       	bloginfo( 'name' );
   
       	// Add the blog description for the home/front page.
       	$site_description = get_bloginfo( 'description', 'display' );
       	if ( $site_description && ( is_home() || is_front_page() ) )
       		echo " | $site_description";
   
       	// Add a page number if necessary:
       	if ( $paged >= 2 || $page >= 2 )
       		echo ' | ' . sprintf( __( 'Page %s' ), max( $paged, $page ) );
   
       	?>
       </title>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Site Title Issue’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [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: [Allison Tarr](https://wordpress.org/support/users/allisonplus/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/site-title-issue/#post-6923680)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
