I also had this issue in my latest theme, published with it, didn’t get rejected. I have the exact same code as you Thommus, with some filters applied.
With no issues, maybe you’ve got some hidden characters in your title tags there?
This was working like a treat for me before the update. Thanks for this btw.
DJMiMi said
add_theme_support( ‘title-tag’ );
This means that the title tag is added by the wp_head() and it is not required to be added as
<?php wp_title() ?>
Yes I believe this is now a requirement for all themes. I think you get an error in theme check if you don’t use this…
Also I figured out what the problem to my issue was in case anyone is still having problems with getting this error to go away. I included ACF in my theme for the options panel and the plugin was using tags in the wrong places. So if the error won’t go away in Theme Check even though you are using the title tags correctly, check ACF.
There is another title tag somewhere in your theme. Do a folder search with Sublime Text (or any other editor) for and remove all of those except for the one in your header.php
RECOMMENDED: No reference to add_theme_support( “custom-header”, $args ) was found in the theme. It is recommended that the theme implement this functionality if using an image for the header.
RECOMMENDED: Tags: is either empty or missing in style.css header.
All tags are in css header but something make confusion in theme check.
RECOMMENDED: No reference to add_theme_support( “custom-header”, $args ) was found in the theme. It is recommended that the theme implement this functionality if using an image for the header.
RECOMMENDED: Tags: is either empty or missing in style.css header.
All tags are in css header but something make confusion in theme check.
1.) Not important, but if you really want it gone, just add this to your theme:
// add_theme_support( 'custom-header' );
2.) Make sure you add tags to any file that is named style.css, not just the main one in the root folder of your theme.