• Hi,

    I’m using the default word press theme and I really need to change the Title Tag of my main page. I’ve set my main page to a static page (not post page).

    I’ve tried ‘Gregs SEO’ and ‘Head Space’, but they just don’t seem to change the Page Title, of a static main page.

    If anyone could help me with either the plugins or better still, PHP code in CSS editor (to manually change the static page title), I would really appreciate it.

    Thanks

    Andy

Viewing 2 replies - 1 through 2 (of 2 total)
  • this is the code of the meta title tag in header.php:

    <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>

    depending on what you want:
    show extra text:

    <title><?php if(is_front_page()) { echo 'extra text to show on front page - '; }; wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>

    show alternative text:

    <title><?php if(is_front_page()) { echo 'show only this on front page'; } else {wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name');} ; ?></title>

    Thread Starter linnslingerie97

    (@linnslingerie97)

    WOW! Exactly what I wanted! Thanks so much!

    I spent most of yesterday, downloading and going through SEO plug-ins and you’ve solved it, in one post ??

    Thanks again, alchymyth

    Andy

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing Page Title of a Static Page’ is closed to new replies.