Forums

<Title> </Title> header tag across site. (2 posts)

  1. dbc29uk
    Member
    Posted 2 years ago #

    Hi there.

    I'm having an issue with the <Title></Title> tags within the Header section of each page on my WordPress site (which has a customised theme).

    The problem is that it is appending the 'Blog Title' to the Title section of each page.

    At the moment my page titles are appearing as:

    PAGE NAME | BLOG TITLE

    I'd like to change this so I have the following format:

    PAGE NAME

    I've tried altering the <Title> section of the Header.php file but to be honest I'm out of my depth and could really do with some advice from someone more experienced.

    The following is an extract from my Header.php file:

    _______________________________________________________________________
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <?php

    $is_pokie = (bool) $wp_query->query_vars['pokie'];
    $cat = get_the_category();
    $cat = $cat[0];
    $override = False;
    if($is_pokie){
    if($cat->object_id == 45 || $cat->object_id == 53)
    {
    $override = True;
    }
    }
    if($override) {
    ob_start('replace_head');
    }

    ?>
    <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    <?php if($override) { ob_end_flush(); } ?>
    <?php
    $home = get_settings('siteurl');
    ?>

    _________________________________________________________________________

    Thanks very much for taking the time to look at my query.

  2. dbc29uk
    Member
    Posted 2 years ago #

    Please note, as a test I've amended to header.php file from

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

    to simply

    <Titel></Title>

    An example of the Title issue I'm having can be seen with this page:

    http://onlinepokiesclub.com/online-pokies-reviews/

    After making this change to the Header.php file it has no impact on the <title> tags and they remain as they were before, i.e PAGE TITLE | BLOG TITLE format.

    Any help would be really appreciated as I'm struggling in the dark, if you know what I mean.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic