@paulinho_rus
We understand that your site is outputting two title tags, which is definitely unexpected.
It looks like your theme is manually adding a title tag and then calling a function (wp_head) that also generates the title tag.
We recommend reviewing the code in that file with your developer, and perhaps removing the title tag directly generated in header.php
Your developer may also want to review this page from the WordPress developer docs: https://codex.ww.wp.xz.cn/Title_Tag.
One alternative option you might check, if your currently active theme has no support for the WordPress title hook, Yoast SEO will show an option called force rewrite titles in the Yoast SEO -> Search Appearance -> General (tab). If you see that relevant option, enabling this should resolve the issue.
The thing about Oxygen is that it completely disables the WordPress theme system so there is no any active theme. On the other hand, I don’t see a Force rewrite titles option in the Yoast SEO settings.
Hi @paulinho_rus
So when you go to your WP admin dashboard > Appearance > Themes, what is the current active theme?
Is it disabled or is it a specific theme from Oxygen Builder that is required so that the page builder will work as expected?
We recommend that you reach out to Oxygen Builder for more assistance on this as to why it’s outputting the duplicate <title> tag – https://yoast.com/help/my-seo-title-isnt-displayed-as-i-have-entered-it/#theme-support
As I wrote before, Oxygen completely disables WordPress theme system.
Screenshot of the themes page
There is a temporary solution:
add_action('wp_head', function() {
remove_action('wp_head', '_block_template_render_title_tag', 1);
remove_action('wp_head', '_block_template_viewport_meta_tag', 0);
}, PHP_INT_MIN);
Oxygen will get a fix for that in a future release.
Thanks for sharing. This really helps
Even if @paulinho_rus temporary solution works, it would be great if this bug would be fixed as soon as possible, as this has a direct impact on the SEO performance of all affected pages!
Thank you in advance team @soflyy & team @yoast!
-
This reply was modified 4 years, 8 months ago by
Raysn.
-
This reply was modified 4 years, 8 months ago by
Raysn.