WordPress.org

Forums

All in One SEO Pack
All in One SEO Pack Showing Wrong Tag Page Title With Twenty Twelve Theme (6 posts)

  1. oneTarek
    Member
    Posted 2 years ago #

    I am using Twenty Twelve Theme and All in one SEO. Suddenly I discover that my tag page <title> is being shown wrong in browser title. And also google already indexed my wrong tags title.
    One of my tag is "WP Logs Book" and my blog title is "oneTarek" and Setting of All in SEO plugin for tag title is "%tag% | %blog_title%" . So my tag page title should be following
    <title>WP Logs Book | oneTarek</title>
    But it is showing
    <title>WP Logs BookoneTarek | oneTarek</title>
    Blog title is being shown twice.

    My tag url is http://onetarek.com/tag/wp-logs-book/ See this page title in browser title bar.
    My other title ( page, post, category ) is fine.

    When I switched my theme to "twenty eleven" then it shows correct title.

    Now my assumption is that "All in one SEO" is not working with "Twenty Twelve" properly.

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

  2. jakus
    Member
    Posted 2 years ago #

    i am also having issues with All in one SEO and Twently Twelve.

    i have the title set to: <title><?php wp_title( '|', true, 'right' ); ?></title> as per the twenty twelve default.

    but when viewing the site, the title displays as:
    Page TitleWebsite Name instead of:
    Page Title | Website Name

    is anyone else having this issue or has anyone found a solution?

    Cheers.

  3. wzshop
    Member
    Posted 2 years ago #

    @jakus; the same here... any solution?

  4. jakus
    Member
    Posted 2 years ago #

    It seems that if you actually set the title for each individual page, in the All in One SEO settings, located just below the text editor, it solves the problem.

    It's not ideal, but it's something for now.

    I'd still like to know why it doesn't work as it used to, by default.

  5. yakbrother
    Member
    Posted 2 years ago #

    I came across this in the Underscores theme framework I was using with All in One SEO. It turns out that the title rewriting is not compatible with the custom wp_title() functions in certain themes, like Twenty Twelve.

    There's no good way to fix it without editing the theme code... If you comment out Line 185 in functions.php in Twenty Twelve, it should work fine.

    This line: add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );

  6. oneTarek
    Member
    Posted 2 years ago #

    Thank You @yakbrother , It works for me.

    Now my tag page title is showing
    <title>WP Logs Book | oneTarek</title>
    instead of
    <title>WP Logs BookoneTarek | oneTarek</title>

    I commented out following line in function.php of twenty twelve theme.
    //add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic