• My site is 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)
  • 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.