e-conomix / staempfli-magento2-module-seo

Magento 2 SEO 模块

安装次数: 9,794

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 27

类型:magento2-module

1.7.3.1 2021-01-13 06:08 UTC

This package is auto-updated.

Last update: 2024-09-21 13:17:35 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" />

网站管理工具

允许您在后台设置

  • Google 网站管理工具
  • Bing 网站管理工具
  • 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(robots.txt)

见:robots 配置

要求

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

支持

如果您对此扩展有任何问题,请在 GitHub 上提交问题。

贡献

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

开发者

Marcel Hauri 和所有其他 贡献者

许可证

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

版权

(c) 2017, Stämpfli AG