Support » Fixing WordPress » Removing the dash in front of the Site Title in Searches/Tabs?

  • Resolved nrdeuel

    (@nrdeuel)


    Hello! I’m having trouble ridding the dash/hyphen in front of my site title for searches/tabs (Google search: “All Wildlife Considered” and the result will appear “- All Wildlife Considered”. This is very frustrating. I’m using the Mantra theme.

    1.I’ve checked Settings/General Settings/Site Title.

    2. I’ve searched in header.php, looking for a hyphen in front of the site title. No success.

    3. I’ve disabled all of my plug-ins. No success

    Any ideas? I’m very new to wordpress……

    Nick

Viewing 6 replies - 1 through 6 (of 6 total)
  • Here is the Header.php……

    /**
    * The Header
    *
    * Displays all of the <head> section and everything up till <div id=”main”>
    *
    * @package Cryout Creations
    * @subpackage mantra
    * @since mantra 0.5
    */
    ?><!DOCTYPE html >
    <html <?php language_attributes(); ?>>
    <head>
    <meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo( ‘charset’ ); ?>” />
    <meta http-equiv=”X-UA-Compatible” content=”IE=edge,chrome=1″ />
    <?php cryout_seo_hook(); ?>
    <link rel=”profile” href=”http://gmpg.org/xfn/11″ />
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
    <?php
    cryout_header_hook();
    wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>

    <?php cryout_body_hook(); ?>

    <div id=”wrapper” class=”hfeed”>

    <?php cryout_wrapper_hook(); ?>

    <header id=”header”>

    <div id=”masthead”>

    <div id=”branding” role=”banner” >

    <?php cryout_branding_hook();?>
    <div style=”clear:both;”></div>

    </div><!– #branding –>

    <nav id=”access” role=”navigation”>

    <?php cryout_access_hook();?>

    </nav><!– #access –>

    </div><!– #masthead –>

    <div style=”clear:both;”> </div>

    </header><!– #header –>
    <div id=”main”>
    <div id=”forbottom” >
    <?php cryout_forbottom_hook(); ?>
    <div style=”clear:both;”> </div>

    <?php cryout_breadcrumbs_hook();?>

    /mantra/includes/theme-seo.php

    Starting on line 8

    /**
    * Filter for page meta title.
    */
    function mantra_filter_wp_title( $title ) {
    // Get the Site Name
    $site_name = get_bloginfo( ‘name’ );
    // Prepend name
    $filtered_title = $title.’ – ‘.$site_name;
    // Get the Site Description
    $site_description = get_bloginfo( ‘description’ );
    // If site front page, append description
    if ( (is_home() || is_front_page()) && $site_description ) {
    // Append Site Description to title
    $filtered_title =$site_name. ” | “.$site_description;
    }

    You can see the source of the hyphen on line 15 (in bold above)

    [edit] I think that’s what you’re after.

    Hi ClaytonJames,

    Thank you so much for the help! I’ve deleted the dash ‘ – ‘ before the site name. When I search my site title in google, it still shows up as “- All Wildlife Considered”. Will it take time for it to change? Thanks again, I appreciate the help.

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    Google will have to re-crawl your website. I think that can take months.

    Hello Andrew Nevins,

    Thanks for the reply. That is ok if it takes months, I can wait! Do you have any idea why mantra put that – before the title tag in the first place? I have not messed aaround editor so I know that it wasn’t me. Thanks for your help!

    I did a little research. I will ask google to re-crawl my site when I’m ready. If anyone else is interested, you can ask google to re-crawl your site at
    http://support.google.com/webmasters/bin/answer.py?hl=en&answer=1352276

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing the dash in front of the Site Title in Searches/Tabs?’ is closed to new replies.