WordPress.org

Support

Support » Plugins and Hacks » [Plugin: All in One SEO Pack] [Problem:] Plugin add site title to page title

[Plugin: All in One SEO Pack] [Problem:] Plugin add site title to page title

  • karmalis
    Member

    @karmalis

    On the current site we are developing, the ALL in One SEO pack somehow adds site_title to the %page_title%. Why? Is there a way to fix this? Can’t seem to find any proper solution for this.

    An Example:

    Page Title Format:
    Exeter Golf and Country Club | %page_title%

    Returns
    Exeter Golf and Country Club | LeisureExeter Golf and Country Club

    List of other plugins:

    • Breadcrumb NavXT
    • CMS Tree Page View
    • Custom Field Template
    • Dagon Design Sitemap Generator
    • Google XML Sitemaps
    • Magic-fields
    • NextGEN Gallery
    • PJW Mime Config
    • Redirection
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Torbert
    Participant

    @hallsofmontezuma

    Hi Karmalis,

    What theme are you using?

    PixelMonkey
    Member

    @pixelmonkey

    I had this same issue and traced it to a problem in functions.php.

    I was using Starkers 3.0 as the basis for the theme and also the functions.php file included with it.

    If you look in functions.php you will find a “twentyten_filter_wp_title” function. It appears that this functions file was based on one supplied with TwentyTen at some point (although the current 3.0.4 TwentyTen functions.php does not include this function).

    To cut to the chase, this function adds a filter to wp_title and, in doing so, appends the site name to the end of the title – among other possible actions.

    I simply commented out the “add_filter( ‘wp_title’…)” line and that fixed the issue. I’m not sure if I broke anything else, so use this at your own risk.

    I hope this helps the next person who spends a chunk of their life tracking down the source of this problem.

    PixelMonkey’s solution worked for me (Thanks!)

    I just commented out the following line in functions.php and the blog title no longer shows up with the page title

    add_filter( 'wp_title', 'twentyten_filter_wp_title', 10, 2 );

    Also, my funtions.php was copied from TwentyTen.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: All in One SEO Pack] [Problem:] Plugin add site title to page title’ is closed to new replies.