Opened 3 years ago
Last modified 3 years ago
#53743 new defect (bug)
Double <title> Tag with SEO Plugins in WordPress 5.8
Reported by: | katsar0v | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | major | Version: | |
Component: | General | Keywords: | needs-patch reporter-feedback |
Focuses: | Cc: |
Description
Hello,
I updated to WordPress 5.8 and am using RankMath. However I noticed there are two viewport tags as well two <title> tags. I guess the code in wp-includes/block-template.php:86-88
has something to do with it. I would very like to get rid of the second <title> tag not belonging to the seo plugin.
I am also using the Oxygen Builder (3.8.1) if that helps.
Change History (4)
#2
@
3 years ago
Hello @jorbin, I decided to open this ticket because I saw on the code that WordPress enforces viewport and title which I can only remove with this snippet:
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);
Note: See
TracTickets for help on using
tickets.
Hi @katsar0v, Thanks for the ticket.
Is this issue reproducible with one of the default themes and with all plugins disabled? If not, then it seems like something you should report to rankmath or the plugin/theme that may be responsible.