• Shopify主题title/description等SEO设置


      Shopify是自建站一个不错的选择,如何通过seo来提升shopify品牌站的流量呢?title和description是很重要的排名因素,但是我们发现很多商家根本就没设置,或者每个页面都是一样的,这就可能错过了很多的自然流量!那么如何设置呢?随ytkah一起来看看吧

      1、进入shopify后台Online Store > Themes.

      2、找到你要编辑的模板,比如Debut,点击右侧的Actions,在弹出的下拉菜单中选edit code,如下图所示

       3、在themes的Layout下点击theme.liquid文件

      4、在<head></head>之间找到<title>meta name="description",和rel="canonical"。canonical唯一URL的标识,如果你的页面url带有参数,防止被搜索引擎判定为重复页面

      5、把下面的代码黏贴进去

    <title>
      {{ page_title }}{% if current_tags %} – tagged "{{ current_tags |
      join: ', ' }}"{% endif %}{% if current_page != 1 %} – Page {{
      current_page }}{% endif %}{% unless page_title contains shop.name %}
      – {{ shop.name }}{% endunless %}
    </title>
    {% if page_description %}
    <meta name="description" content="{{ page_description | escape }}" />
    {% endif %}
    <link rel="canonical" href="{{ canonical_url }}" />
    

      6、点击保存

      7、在Shopify管理员中,转到在线商店>首选项(Online Store > Preferences)

      8、在标题和元描述下Title and meta description,在首页标题和首页元描述字段中输入您的首页标题和描述Homepage title and Homepage meta description

      9、单击保存。

       参考资料:https://shopify.dev/tutorials/develop-theme-getting-started-search-engine-optimization

  • 相关阅读:
    Ubuntu16.04下Django项目的部署
    Ubuntu16.04 下python2 | python3
    请求头请求体对应表
    Django项目开发-小技巧
    前端验证后端验证码问题
    Ugly Number
    移动0元素
    图片(画布上的图片)上传总结
    从矩阵中查找一个数
    搜索框(附带事件函数)
  • 原文地址:https://www.cnblogs.com/ytkah/p/13552569.html
Copyright © 2020-2023  润新知