GIGABOY
Forum Replies Created
-
Hi, @mikes41720
Thank you for your answer.
Good luck with your plugin support!
I will further pursue this topic.
I appreciate for your kindness.
I’ll have to give up on deleting them, including “commenting out.”
I don’t understand why such a popular plugin doesn’t have a stop tag ready to go.
However, the forced output of yoast SEO’s name in the “comment out” section is an announcement power.
There will come a day when we will have to deal with it.
I salute you.
I understand that <title> tags that are hardcoded in the theme will not be removed.
> With the filter mentioned above, it ensures that the
> SEO title defined by the Yoast SEO plugin isn’t being used.No, you can clearly see that the <title> tag is output by Yoast SEO, because there are Yoast SEO comment outs before and after the <title> tag.
The <title> tags that are still displayed after using the filter are clearly output by Yoast SEO.
The reason is that, as mentioned earlier, Yoast SEO’s <title> tag is output for wp_head().
Is there any way to stop Yoast SEO from “pointing to wp_head() and outputting the <title> tag”?
- This reply was modified 4 years, 5 months ago by GIGABOY.
Hi.
No, that perception is probably wrong.
The <title></title> output by Yoast SEO is
This is done for wp_head().Even if there is a “<title></title>” on the theme side, the “<title></title>” is output for wp_head(), not for that title.
Hi.
I don’t want to output the <title></title> tag itself.
In other words, you want to stop the title tag itself from being output because you don’t want to use Yoast SEO only for a specific custom post type.
Does wpseo_title not have the ability to stop the output of the title tag itself?
Hi.
I understood that wpseo_canonical with __return_false works.
// The canonical will be removed. add_filter( 'wpseo_canonical', '__return_false' );// The title will not be deleted. add_filter( 'wpseo_title', '__return_false' );The fact that wpseo_title does not work with __return_false is a “specification”?
Using wpseo_title, for 「<title>title text</title>」
Is the solution to write PHP to delete it?Hi.
Is it also “unsupported” that wpseo_title doesn’t work?
add_filter( 'wpseo_title', '__return_false' );I want to know why the title is output even if I set __return_false for wpseo_title.
I salute you.
Hello Maybellyne,
Thanks for the quick and accurate answer.
By the way, is there a way to disable all the tags output by Yoast SEO at once, including the comment-out tags?
In my usage, I don’t use Yoast SEO completely for one custom post type only, so I thought it would be safe if there was a way to not output any comment-out tags at all.
remove_action( 'wpseo_disable', 'wpseo_disable_for_specific_cpt' ); add_filter( 'wpseo_disable', 'wpseo_disable_for_specific_cpt' );It would be nice if there was a way to specify all of them.
I would be very happy if I could specify all of them, because when I specify them individually, only the comment-out remains.
Thank you for your kind attention.
thanks