如何在wordpress中删除application/ld+json YOAST SEO插件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何在wordpress中删除application/ld+json YOAST SEO插件相关的知识,希望对你有一定的参考价值。

JSON-LD is one of the micromarking schemes. If you use the SEO plugin Yoast SEO on your website, then it defaults to a JSON-LD scheme for the entire website that cannot be changed. In order for the site owner to be able to use any other microdata, this must be disabled. Any settings in the admin panel plug-in Yoast SEO for this does not provide.
This method involves editing the functions.php file of your active WordPress theme:
  1. function wpschool_remove_yoast_jsonld( $data ){
  2. $data = array();
  3. return $data;
  4. }
  5. add_filter( 'wpseo_json_ld_output', 'wpschool_remove_yoast_jsonld', 10, 1 );

以上是关于如何在wordpress中删除application/ld+json YOAST SEO插件的主要内容,如果未能解决你的问题,请参考以下文章

如何在wordpress中删除评论列

Wordpress:如何删除默认 Wordpress 日历上的存档链接

如何在没有 single.php 的情况下从 wordpress 帖子中删除特色图片

如何删除转到 wordpress 的旧本地主机?

如何删除转到 wordpress 的旧本地主机?

如何删除从 wordpress 上的图像附件生成的页面?