|
Post by account_disabled on Dec 10, 2023 13:34:09 GMT 3
谷歌开发者博客 这是另一个关于拨损的例子。 还需要注意的是,如果唯一存在的移动版本页面是 AMP 版本,即使 Google 将其索引切换为移动优先索引,Google 仍将使用桌面版本进行索引。 如何在 WordPress 中配置 Google AMP? 幸运的是,现在在 WordPress 中实施 Google AMP 比 6 个月前容易得多。WordPress 插件和整个平台已经取得了很大的进步。但请记住,您的代码必须经过 Google 验证才能 在 SERP 中显示您网站的AMP 版本。插件会将您的帖子转换为 AMP 版本,但 Google 决定显示 AMP 版本。 基本上,它的工作原理是您的 WordPress 帖子会获得分配给它的不同 URL。所有这些都是由 WordPress 插件自动处理的。 通常 /amp 或 /?amp 会添加到您 加拿大数据库 当前的帖子中。这是一个例子: 原始博客文章 URL:博客文章 URL:/amp/ Google AMP WordPress 插件 目前存储库中有 2 个流行的 WordPress 插件可以帮助您设置 Google AMP。第一个是官方免费的AMP插件 ,它实际上是由 Automattic 团队开发的。 谷歌放大器 WordPress 插件 Google AMP WordPress 官方插件 截至撰写本文时,它目前拥有超过 200,000 次活跃安装,评分为 3.5 星(满分 5 星)。您可以从WordPress 存储库下载它 ,也可以在 WordPress 仪表板的“添加新”插件下搜索它。您可以在“AMP Appearance”编辑器下稍微自定义外观(如下所示)。 但是,您对该插件的选择非常有限,并且依赖于了解如何为 AdSense 或 Analytics 等功能实施其他过滤器 。 WordPress amp 自定义外观 WordPress AMP 样式 还需要注意的是,它仅支持帖子,而不支持页面。尽管他们已经宣布正在努力添加此功能。下面是安装插件后我们的 WordPress 帖子的示例。 WordPress 放大器帖子 WordPress AMP 预览 如果您想以简单的方式添加其他功能,那么免费的AMP for WP插件就 可以发挥作用。这基本上是官方 AMP 插件的扩展,并为您提供额外的功能和支持。它由Ahmed Kaludi 和 Mohammed Kaludi开发 ,他们还经营着一家成功的 WordPress 模板商店。
|
|