staempfli/magento2-module-seo

此包已被弃用且不再维护。未建议替代包。

Magento 2 Seo 模块

安装次数: 44,465

依赖关系: 0

建议者: 0

安全: 0

星标: 89

关注者: 19

分支: 18

开放性问题: 14

类型:magento2-module

1.7.3 2019-08-27 08:46 UTC

This package is auto-updated.

Last update: 2020-09-16 11:55:52 UTC


README

Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development. Codacy Badge Build Status Maintainability Test Coverage

用于改善您 Magento 网站的搜索引擎优化(SEO)的 Magento 2 模块。

安装

通过 composer 安装此模块,如下所示

composer require staempfli/magento2-module-seo

对于 Magento 2.1.x 使用版本 1.6.1

composer require staempfli/magento2-module-seo:1.6.1

使用方法

该模块将自动优化并提高您的基于 Magento 的商店在搜索引擎中的性能。

通过添加

  • TwitterCards

    • 对于 CMS 页面

      <meta name="twitter:title" content="Home page" />
      <meta name="twitter:description" content="CMS homepage content goes here." />
      <meta name="twitter:url" content="http://example.com/" />
      <meta name="twitter:card" content="summary" />
      <meta name="twitter:site" content="@StaempfliWeb" />
      <meta name="twitter:creator" content="@mhauri" />
    • 对于分类

      <meta name="twitter:title" content="Demo Category" />
      <meta name="twitter:url" content="http://example.com/demo-category.html" />
      <meta name="twitter:description" content="This is a Demo Category" />
      <meta name="twitter:image" content="http://example.com/media/catalog/category/demo.png" />
      <meta name="twitter:card" content="summary" />
      <meta name="twitter:site" content="@StaempfliWeb" />
      <meta name="twitter:creator" content="@mhauri" />
    • 对于产品

      <meta name="twitter:title" content="Demo Product" />
      <meta name="twitter:description" content="Demo Product Short Description" />
      <meta name="twitter:image" content="http://example.com/media/catalog/product/cache/0f831c1845fc143d00d6d1ebc49f446a/o/p/demo.png" />
      <meta name="twitter:url" content="http://example.com/demo-product.html" />
      <meta name="twitter:card" content="summary" />
      <meta name="twitter:site" content="@StaempfliWeb" />
      <meta name="twitter:creator" content="@mhauri" />
  • 结构化数据

    • 对于 CMS 页面

      <meta property="og:title" content="Home page" />
      <meta property="og:description" content="CMS homepage content goes here." />
      <meta property="og:url" content="http://example.com/" />
    • 对于分类

      <meta property="og:title" content="Demo Category" />
      <meta property="og:url" content="http://example.com/demo-category.html" />
      <meta property="og:description" content="This is a Demo Category" />
      <meta property="og:image" content="http://example.com/media/catalog/category/demo.png" />
    • 对于产品

      <meta property="og:title" content="Demo Product" />
      <meta property="og:description" content="Demo Product Short Description" />
      <meta property="og:image" content="http://example.com/media/catalog/product/cache/0f831c1845fc143d00d6d1ebc49f446a/o/p/demo.png" />
      <meta property="og:url" content="http://example.com/demo-product.html" />
      <meta property="og:type" content="og:product" />
      <meta property="product:price:amount" content="125.5" />
      <meta property="product:price:currency" content="CHF"/>
  • 语言注释

    <link rel="alternate" hreflang="fr" href="http://example.com/fr/content-pages/demo.html" />
    <link rel="alternate" hreflang="en" href="http://example.com/en/content-pages/demo.html" />

网站管理员工具

允许您在后台设置验证码

  • 谷歌网站管理员工具
  • 必应网站管理员工具
  • Pinterest
  • Yandex 网站管理员工具

Search Engine Optimization

<meta name="google-site-verification" content="YOUR_GOOGLE_VERIFICATION_CODE" />
<meta name="msvalidate.01" content="YOUR_BING_VERIFICATION_CODE" />
<meta name="p:domain_verify" content="YOUR_PINTEREST_VERIFICATION_CODE" />
<meta name="yandex-verification" content="YOUR_YANDEX_VERIFICATION_CODE" />

机器人(robots.txt)

查看:机器人配置

要求

  • PHP: > 7.0
  • Magento 2.2.x | 2.3.x

支持

如果您对此扩展有任何问题,请打开GitHub上的问题。

贡献

任何贡献都将受到高度赞赏。最佳贡献代码的方式是在GitHub上发起拉取请求。

开发者

Marcel Hauri 以及所有其他 贡献者

许可

开放软件许可 ("OSL") v. 3.0

版权

(c) 2017, Stämpfli AG