• Hi,
    My sites title has “|” in front of the title. This cant be good for seo….
    Anyone ever have a problem like this?
    my site is bet-nfl.com you can take a look at the title

Viewing 8 replies - 1 through 8 (of 8 total)
  • Try looking at your themes header.php file and see what is between the <title></title> tags. The | is probably hard coded either between the title tags or in functions php.

    Thread Starter gooder

    (@gooder)

    Looked into that and found this code bellow, and I couldn’t see anything wrong:

    <title><?php if (is_home()) {
    echo bloginfo(‘name’);
    } elseif (is_404()) {
    echo ‘404 Not Found’;
    } elseif (is_category()) {
    echo wp_title(”);
    } elseif (is_search()) {
    echo ‘Search Results’;
    } elseif ( is_day() || is_month() || is_year() ) {
    echo bloginfo(‘name’);
    echo ‘ |’;
    echo ‘Archives:’;
    echo ‘ |’;
    echo wp_title(”);
    } else {
    echo wp_title(”);
    echo ‘ |’;
    echo bloginfo(‘name’);
    }
    ?></title>

    echo ' |';
    echo 'Archives:';
    echo ' |';
    echo wp_title('');
    } else {
    echo wp_title('');
    echo ' |';

    Remove the echo ' |'; lines from the code you listed above.

    Thread Starter gooder

    (@gooder)

    Thanks c3mdigital but I still have the same problem after removing those bits of code.
    Any other suggestions?

    The code you listed above looks like it came from header.php try looking in functions.php for the hard coded | or it could even be in blog name under settings general.

    If you post the contents of functions.php and header.php to https://wordpress.pastebin.com/ I will take a look and see if it is still lingering somewhere else.

    Thread Starter gooder

    (@gooder)

    I posted the content here: https://wordpress.pastebin.com/meKN8jEr
    Thanks

    There is nothing in header.php causing this. Try posting functions.php

    Thread Starter gooder

    (@gooder)

    here is the functions.php
    https://wordpress.pastebin.com/BHppQwFW

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘My site title question’ is closed to new replies.