• Resolved paulinho_rus

    (@paulinho_rus)


    I have a new website created with Oxygen Builder. After activating Yoast SEO the Title meta tag is duplicated in the <head> section. This problem is reproduced on all my sites using Yoast SEO + Oxygen. When I use All in one SEO there is no such problem.

    Screenshot

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • @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.

    Thread Starter paulinho_rus

    (@paulinho_rus)

    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.

    Plugin Support Michael Tiña

    (@mikes41720)

    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

    Thread Starter paulinho_rus

    (@paulinho_rus)

    As I wrote before, Oxygen completely disables WordPress theme system.

    Screenshot of the themes page

    Thread Starter paulinho_rus

    (@paulinho_rus)

    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.

    Thanks

    • This reply was modified 4 years, 7 months ago by jk2020.
Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Two Title tags when using Oxygen Builder’ is closed to new replies.