- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我想删除 Yoast 应用于我的 WordPress 网站的 JSON-LD 架构,以便我可以添加自己的架构。我已经添加了我自己的,Google 结构化数据测试说它没问题,但基本上我有 3 个独立的 JSON-LD 模式,而不是因为 Yoast 的两个。
你可以在这里明白我的意思:https://search.google.com/structured-data/testing-tool/u/0/#url=http%3A%2F%2Fwww.yogabearpc.com
Yoast 已经添加了 WebSite
模式,但它似乎没有必要甚至有害?
最佳答案
我想禁用它是因为站点链接搜索框以及我没有全局可用的搜索功能,仅在博客上可用。为我启用搜索框会产生不良影响。
更简单的选择可能只是阻止 Google 使用附加链接搜索框,而无需触及功能文件。您可以使用以下元数据阻止 Google 在您的网站上使用附加链接搜索框:
<meta name="google" content="nositelinkssearchbox" />
如果您想一起禁用 Yoast 的 JSON-LD,那么这里是我的博客中的一个片段和我在我的网站上使用的代码:
How to disable Yoast SEO Schema JSON-LD completely
function bybe_remove_yoast_json($data){
$data = array();
return $data;
}
add_filter('wpseo_json_ld_output', 'bybe_remove_yoast_json', 10, 1);Login to your WordPress dashboard and head over to the editor within the tab menu appearance, find your functions file (normally named functions.php) and add the code below just before the PHP tag is closed at the bottom.
关于wordpress - 我可以删除 Yoast 添加到我的 WordPress 网站的 JSON-LD 架构吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38619924/
对于我的生活,我不明白为什么 wordpress 不运行这个过滤器。我将它添加到我的 Active Child 主题的 functions.php 中,functions.php 中没有其他代码 /*
我需要创建一个函数,以便我可以在 WordPress 常规页面之外的任何页面中使用它。我的意思是 wp_head() 不会放在那里。我需要它是有目的的。 目的是针对 AMP (ampproject.o
我正在开发一个具有多种自定义帖子类型的定制网站。但是,Yoast 似乎没有在自定义帖子概览页面(不是各个帖子本身)上显示任何关键字和描述字段。 我花了很多时间在谷歌上搜索解决方案,但添加了: 'pub
将 Yoast 更新到版本 4.7 后,JQuery 似乎出现冲突并且无法运行。在 Yoast 2.3.5 版本中,JQuery 运行,我在页面中看到: 在所有其他高级版本中它都无法运行,我在页面中
我的站点名称是 cloud nippon,URL 是 https://www.cloudnippon.com .这是一个多语言网站。我使用多种语言的 polylang 插件,我使用 Yoast 插件来
我正在为我的网站 SEO 使用 Yoast。我已为我的元描述添加了 %%excerpt%%,但自动生成不起作用。我想为我的元描述添加我的帖子内容。 有人知道这个的解决方案吗? 最佳答案 这是一个错误,
我正在管理一个小型目录网站,并且使用 Yoast SEO 插件为我的页面设置了一些通用标题和描述。 我想直接通过 MySQL 数据库将它们复制到每个条目/页面。但是,我在数据库中找不到它。 我在 wp
我要删除 json-ld网站微数据,我想我必须在类中禁用操作 WPSEO_JSON_LD 操作: add_action( 'wpseo_json_ld', array( $this, 'website
我制作了一个自定义帖子类型,我希望不同的用户只能编辑他们的帖子。我对他们在网站和帖子上的能力做了一些限制——我不希望他们能够编辑除一些文本输入等之外的任何内容。 出于某种原因,我找不到在帖子上禁用 Y
我正在使用 Yoast SEO Wordpress 插件,并且出于某种原因正在我的网站上实现面包屑导航,我有 2 个似乎无法解决的问题。 添加以下代码后,数字“1”出现,我无法摆脱它...参见 htt
我正在使用 Yoast SEO插入。我有一个自定义帖子类型,最初设置为“新闻”……然后更改为“博客”。即使存档设置被设置为称为“博客”,当在 linkedin 中发布链接时,该片段仍显示为新闻。 有没
我在我的网站上使用 Yoast 的 SEO... 在 SEO 的 FOCUS KEYWORD 主页上,我输入了公司名称……没问题。有用。 我想知道是否可以在该字段中放置更多焦点关键字? 也许以某种方式
如何让 Yoast 在源代码中包含关键字?我在每个页面上都填写了关键字以及描述。在我的页面上,描述显示但关键字行没有。我在 Yoast 设置中选中了关键字框。 TITLE (
我找到了一份工作来消除网站中的“此页面没有可用信息”。该网站使用 Yoast SEO,但它已被禁用,所以我重新启用它,然后我得到了一个基本的 robots.txt,如下所示 User-agent: *
我目前正在使用 Yoast SEO wordpress 插件,站点地图被保存为 sitemap_index.xml 但我希望它是 sitemap.xml,我该如何更改它?还有任何人对 SEO 工作有任
我在为我的站点生成站点地图时遇到问题。 我有最新版本的 yoast SEO 插件 3.5 和 WordPress 4.6.1 我已经尝试了 google 上可用的不同方法,但仍然无法修复。甚至禁用所有
我知道这种问题已经被问过很多次了,我已经阅读了网上所有的帖子,没有一个答案符合我的需要。 我无法使用 yoast 插件将页码添加到分页页面上的元标题,包括主页和分类法(以避免与搜索引擎重复内容)。 我
我在管理端的自定义帖子类型编辑帖子页面时遇到此错误。此外,我在控制台中收到一个错误“TypeError:无法从 WordPress 包含 js 文件夹的 react-dom.min.js 文件中读取未
我正在尝试删除某个页面上的 Yoast WordPress SEO,因为它与另一个插件冲突。 我尝试将下面的代码添加到我的functions.php中,但它似乎不起作用,感谢任何帮助。 谢谢 func
在 metabox 高级选项卡上的单个页面的“Meta Robots Follow”设置中设置 nofollow 选项,但看不到任何变化。它是如何工作的? site.com/robots.txt 没有
我是一名优秀的程序员,十分优秀!