Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

Home Forums Free Theme Support Zenon Lite Site title problem Reply To: Site title problem

#120198

Towfiq I.

administrator

1. Open up functions.php and add this:

//Zenon Site title
function zenon_wp_title( $title, $sep ) {
	global $paged, $page;

	if ( is_feed() )
		return $title;

	// Add the site name.
	$title .= get_bloginfo( 'name' );

	// Add the site description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		$title = "$title $sep $site_description";

	// Add a page number if necessary.
	if ( $paged >= 2 || $page >= 2 )
		$title = "$title $sep " . sprintf( __( 'Page %s', 'zenon' ), max( $paged, $page ) );

	return $title;
}
add_filter( 'wp_title', 'zenon_wp_title', 10, 2 );

before this line:

//Include CSS

then Open up header.php and replace this:

<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

with this:

<title><?php wp_title( '|', true, 'right' ); ?></title>