Shopify: Yuav Ua Li Cas Program Dynamic Theme Titles thiab Meta Descriptions rau SEO siv kua

Shopify Template Liquid - Customize SEO Title thiab Meta Description

Yog tias koj tau nyeem kuv cov lus ob peb lub hlis dhau los, koj yuav pom tias kuv tau sib qhia ntau ntxiv txog kev lag luam e-lag luam, tshwj xeeb tshaj yog hais txog Khw Tshaj Tawm. Kuv lub tuam txhab tau tsim tawm qhov kev hloov kho siab heev thiab kev koom ua ke Kav Khw Ntxiv Ntxiv site rau tus neeg siv khoom. Tsis yog siv ntau lub hlis thiab ntau txhiab daus las los tsim lub ntsiab lus los ntawm kos, peb tau tham nrog tus neeg siv khoom kom tso cai rau peb siv lub ntsiab lus zoo thiab txhawb nqa uas tau sim thiab sim. Peb mus nrog Wokie, ntau lub hom phiaj Shopify Cov Ntsiab Lus uas muaj ntau lub peev xwm.

Nws tseem xav tau ntau lub hlis ntawm txoj kev loj hlob los koom nrog qhov hloov pauv uas peb xav tau raws li kev tshawb fawb kev lag luam thiab peb cov neeg siv cov lus tawm tswv yim. Ntawm qhov tseem ceeb ntawm qhov kev siv yog tias Closet52 yog qhov chaw ncaj qha rau cov neeg siv khoom lag luam ecommerce uas cov poj niam tuaj yeem yooj yim. yuav dresses online.

Vim tias Wokiee yog lub ntsiab lus ntau yam, ib qho chaw uas peb tsom ntsoov rau yog kev tshawb fawb cav optimization. Nyob rau tib lub sijhawm, peb ntseeg tias kev tshawb nrhiav organic yuav yog tus nqi qis tshaj plaws ntawm kev yuav khoom thiab cov neeg yuav khoom nrog lub siab tshaj plaws los yuav. Hauv peb qhov kev tshawb fawb, peb tau txheeb xyuas tias cov poj niam yuav khoom hnav khaub ncaws nrog 5 tus neeg txiav txim siab tseem ceeb:

  • Styles ntawm dresses
  • Xim ntawm dresses
  • Nqe ntawm dresses
  • dawb Shipping
  • Hassle-Dawb Rov Los

Cov npe thiab cov lus piav qhia meta yog qhov tseem ceeb ntawm tau txais koj cov ntsiab lus indexed thiab tso tawm kom raug. Yog li, tau kawg, peb xav tau lub npe tag thiab cov lus piav qhia meta uas muaj cov ntsiab lus tseem ceeb!

  • cov npe lossis nyob rau hauv koj nplooj ntawv nqe lus yog qhov tseem ceeb los xyuas kom meej tias koj cov nplooj ntawv raug txheeb xyuas kom zoo rau kev tshawb nrhiav qhov tseeb.
  • cov meta cov lus piav qhia yog tso tawm nyob rau hauv search engine result pages (SERPs) uas muab cov ntaub ntawv ntxiv uas ntxias cov neeg siv tshawb nrhiav kom nyem.

Qhov kev sib tw yog tias Shopify feem ntau qhia cov npe thiab cov lus piav qhia nyob rau hauv cov nplooj ntawv sib txawv - tsev, sau, khoom, thiab lwm yam. Yog li, kuv yuav tsum tau sau qee qhov laj thawj los ua kom muaj cov npe thiab cov lus piav qhia meta kom raug.

Optimize Koj Shopify nplooj npe

Shopify lub ntsiab lus yog kua thiab nws zoo heev. Kuv yuav tsis nkag mus rau hauv tag nrho cov ntsiab lus ntawm cov syntax, tab sis koj tuaj yeem tsim cov nplooj ntawv npe yooj yim zoo nkauj. Ib yam uas koj yuav tsum nco ntsoov ntawm no yog cov khoom lag luam muaj ntau yam ... yog li kev sib xyaw ua ke rau hauv koj cov nplooj ntawv npe txhais tau tias koj yuav tsum tau voj los ntawm cov kev xaiv thiab dynamically tsim txoj hlua thaum lub template yog ib tug. khoom tus qauv

Nov yog ib qho piv txwv ntawm lub npe rau a plaid sweater tiab.

<title>Plaid Sweater Dress on sale today for $78.00 » Multi Knee-Length » Closet52</title>

Thiab ntawm no yog cov cai uas ua rau qhov tshwm sim:

{%- capture seo_title -%}
  {{- page_title -}}
    {% assign my_separator = " » " %}
    {%- if current_tags -%}{%- assign meta_tags = current_tags | join: ', ' -%}{{ my_separator }}{{ 'general.meta.tags' | t: tags: meta_tags -}}{%- endif -%}
    {%- if current_page != 1 -%}{{ my_separator }}{{ 'general.meta.page' | t: page: current_page }}{%- endif -%}
    {%- if template == "product" -%}{{ " on sale today for " }}{{ product.variants[0].price | money }}{{ my_separator }}{% for product_option in product.options_with_values %}{% if product_option.name == 'Color' %}{{ product_option.values | join: ', ' }}{% endif %}{% endfor %}{% if product.metafields.my_fields.dress_length != blank %} {{ product.metafields.my_fields.dress_length }}{%- endif -%}{%- endif -%}{{ my_separator }}{{ shop.name }}
{%- endcapture -%}
  
<title>{{ seo_title | strip_newlines }}</title>

Lub code tawg zoo li no:

  • Title Title - suav nrog cov nplooj ntawv tiag tiag ua ntej… tsis hais tus qauv.
  • Tags - koom nrog cov cim npe los ntawm kev koom nrog cov cim txuam nrog nplooj ntawv.
  • Khoom Xim Xim - Loop los ntawm kev xaiv xim thiab tsim ib txoj hlua sib cais.
  • Metafields - Qhov piv txwv Shopify no muaj qhov hnav ris tsho ntev raws li qhov chaw uas peb xav kom suav nrog.
  • nqe - suav nrog thawj tus nqi sib txawv.
  • Khw Muag Khoom Npe - Ntxiv lub khw lub npe ntawm qhov kawg ntawm lub npe.
  • Separator - dua li rov ua qhov sib cais, peb tsuas yog ua nws txoj hlua khi thiab rov ua dua. Txoj kev ntawd, yog tias peb txiav txim siab hloov lub cim ntawd yav tom ntej, nws tsuas yog nyob hauv ib qho chaw xwb.

Optimize koj Shopify Nplooj Meta piav qhia

Thaum peb nkag mus rau qhov chaw, peb pom tias cov nplooj ntawv lub ntsiab lus uas tau hu ua tau rov ua nplooj ntawv home SEO. Peb xav ntxiv cov lus piav qhia sib txawv nyob ntawm seb nplooj ntawv puas yog nplooj ntawv tsev, nplooj ntawv sau, lossis nplooj ntawv khoom tiag.

Yog tias koj tsis paub meej tias koj lub npe template yog dab tsi, tsuas yog ntxiv ib daim ntawv HTML hauv koj li ntsiab lus.liquid cov ntaub ntawv thiab koj tuaj yeem saib qhov chaw ntawm nplooj ntawv txhawm rau txheeb xyuas nws.

<!-- Template: {{ template }} -->

Qhov no tso cai rau peb txheeb xyuas tag nrho cov qauv uas siv lub vev xaib meta piav qhia kom peb tuaj yeem hloov kho cov lus piav qhia meta raws li tus qauv.

Nov yog cov lus piav qhia meta peb xav tau ntawm nplooj ntawv khoom saum toj no:

<meta name="description" content="Turn heads in this classic hunter green plaid sweater dress. Modern updates make it a must-have: the stand-up neckline, three-quarter sleeves and the perfect length. On sale today for $78.00! Always FREE 2-day shipping and hassle-free returns at Closet52.">

Nov yog qhov code:

{%- capture seo_metadesc -%}
  {%- if page_description -%}
    {%- if template == 'list-collections' -%}
      {{ "Find a beautiful dress for your next occasion. Here are all of our beautiful dress collections." | strip }} 
    {%- else -%}
    {{- page_description | strip | escape -}} 
      {%- if template == 'product' -%}
        {{ " On sale today for " }}{{ product.variants[0].price | money }}!
      {%- endif -%}
   {%- endif -%}
  {%- endif -%}
  {{ " Always FREE 2-day shipping and hassle-free returns at " }}{{ shop.name | strip }}.
{%- endcapture -%}
  
<meta name="description" content="{{ seo_metadesc | strip_newlines }}">

Qhov tshwm sim yog ib qho dynamic, cov txheej txheem ntawm cov npe thiab cov lus piav qhia meta rau txhua hom qauv lossis nplooj ntawv nthuav dav. Tsiv mus tom ntej, Kuv yuav zoo li yuav rov hais dua cov cai siv cov lus hais thiab teeb tsa nws zoo dua me ntsis. Tab sis tam sim no, nws tau tsim muaj ntau qhov zoo dua nyob rau hauv cov nplooj ntawv tshawb fawb cav.

Los ntawm txoj kev, yog tias koj xav tau luv nqi zoo… peb xav kom koj sim tawm ntawm qhov chaw nrog 30% tawm daim coupon, siv code HIGHBRIDGE thaum kuaj tawm.

Khw rau Dresses Tam sim no

Kev Tshaj Tawm: Kuv yog tus koom rau Khw Tshaj Tawm thiab Themeforest thiab kuv tab tom siv cov kev sib txuas hauv kab lus no. Closet52 yog tus neeg siv khoom ntawm kuv lub tuam txhab, Highbridge. Yog tias koj xav tau kev pabcuam hauv kev tsim koj cov khoom lag luam e-lag luam siv Shopify, thov hu rau peb.