php novice - help needed

General discussions related to php

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Wed Jun 06, 2012 7:00 am

php novice - help needed

Postby emmab21 » Wed Jun 06, 2012 7:15 am

Hi all,

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 ) );


Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 2 guests