As the title suggests my php knowledge is basic at best, but I'm determined I will learn.
The issue I need help with is my websites template is coded like below for the page titles, but this is resulting in the page title showing up like this "About Us ||WebsitenameWebsitename " I've tried messing about with it but I can't work out what I need to change to make it "About Us ||Websitename "
Can anyone please help?
* Print the <title> tag based on what is being viewed.
wp_title( '|', true, 'right' );
// Add the blog name.
bloginfo( 'name' );
global $page, $paged;
// 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', 'easierfinances' ), max( $paged, $page ) );