• Resolved Saswata Baksi

    (@amsaswata)


    Hello There,

    I don’t have any other SEO plugin except Yoast, but when I checked the source code there are two title tags showing.

    I guess one by default and one by Yoast, is not possible to disable either 1 of them?

    Some SEO audit tools, flag this.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • cenay

    (@cenay)

    I had read somewhere you could add this to your child theme functions file
    add_filter( 'wpseo_title', '__return_false' );

    Though I’ve tried that and it doesn’t seem to for me. But then I’m using Oxygen (a plugin) instead of a theme.

    I’m currently looking for a way to have Yoast’s version stop injecting itself into the HTML of a page. I’ve even tried this:
    remove_action( 'wp_head', '_wp_render_title_tag', 1 );
    with no effect.

    If anyone else is using Oxygen and has a suggestion, I am open to it!

    Thanks.

    Thread Starter Saswata Baksi

    (@amsaswata)

    Hey, here’s the solution(snippet) though they fixed it in 3.9.1 beta, hopefully, get the update soon.

    Thanks,

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @amsaswata & @cenay

    We understand it’s outputting two <title> tags in the page source.

    If your theme is compatible with WordPress 4.1 and newer versions, it should declare theme support for the title-tag and remove all <title> calls from theme files to support dynamic titles.

    Otherwise, if your theme does not declare support for the title-tag feature, you have two options: edit your theme files or use the force a rewrite option.

    You can learn more about it here – https://yoast.com/help/my-seo-title-isnt-displayed-as-i-have-entered-it/#theme-support

    cenay

    (@cenay)

    @mikes41720 Thanks for the reply, but did you hear the part about my situation being Oxygen? It’s not a theme. In fact, it disabled the theme system entirely. So I believe they are just allowing the WordPress code to “flow through”.

    @amsaswata — are you referring to the snippet I posted? Or did you forget to include the snippet that is the fix? I’m confused.

    Thread Starter Saswata Baksi

    (@amsaswata)

    @cenay ops sorry, here’s the GitHub issue link with a solution: https://github.com/soflyy/oxygen-bugs-and-features/issues/2315

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘2 Title Tag Showing in the HTML’ is closed to new replies.