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.
Hey, here’s the solution(snippet) though they fixed it in 3.9.1 beta, hopefully, get the update soon.
Thanks,
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
@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.