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。詳情參考這里shopify Homepage meta description首頁標題描述在哪里修改

  9、單擊保存。

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM