The Title

February 14 in Featured by daniel


My Diary is blog Powered by Wordpress. Please subscribe to My Diary via the RSS Feed or Via Email.

Had you thought that the title of a site could affect the search index from the search engine like Google. Here was I tried to make the site friendlier with search engine,
change format :

1
<title><?php if(is_home() || is_search()) { bloginfo('name'); echo ' - '; bloginfo('description'); } else { wp_title('') ;} ?></title>

with :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php if(is_home())
    {
    echo'<title>';
    bloginfo('name');
    echo ' &brvbar; ';
    bloginfo('description');
    echo'</title>'; }
    else
    {
    echo'<title>';
    wp_title('');
    echo ' &brvbar; at &brvbar; ';
    bloginfo('name');
    echo ' &brvbar; ';
    bloginfo('description');
    echo '</title>'; }?>

This was done only by improving the part your header.php, tried and saw results.

Leave a Feedback

Wordpress