My main problem is around the title. In my index.php, I have specified a title tag and inserted the following:
<?php wp_title(); ?> | <?php bloginfo( 'name' ); ?>
My problem is the it is only printing the blog “name” – wp_title() prints nothing
i.e. This is what is being printed from the above:
| WordPress Test Site
NOTE: The Page Title should be: Home
Strangely, when I visit My Sample Page, it presents the following:
» Sample Page | WordPress Test Site
And they are both using the same header.php file!
Am I missing a setup somewhere that doesn’t work on the home page?
FYI – I’ve set the Page – Home as the static front page.
Thanks
The title is empty at the front page in WordPress. Yes, that sucks.
Just put the separator into
wp_title()
:This prints out just the blog name on the front page and
PAGE NAME · BLOG NAME
on other pages.