WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing the dash in front of the Site Title in Searches/Tabs? (7 posts)

  1. nrdeuel
    Member
    Posted 1 year ago #

    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

  2. nrdeuel
    Member
    Posted 1 year ago #

    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();?>

  3. ClaytonJames
    Member
    Posted 1 year ago #

    /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.

  4. nrdeuel
    Member
    Posted 1 year ago #

    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.

  5. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  6. nrdeuel
    Member
    Posted 1 year ago #

    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!

  7. nrdeuel
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic