Shopify,将文本更改为我在页面中写的内容

时间:2017-07-29 11:27:57

标签: html css shopify

我希望“Tab Content Shipping”能够在我的产品页面的Shipping列下的“Shipping”页面中写下。这是代码

<div id="tabs" class="htabs">
<a href="#tab-description" class="selected">{{'products.product.description' | t}}</a>
 <a href="#tab-new">Tab Heading</a>
 <a href="#tab-review" class="">{{'products.product.customer_reviews' | t}}
</a>
  {%- if product.featured_image.alt contains 'iframe' -%}
 <a href="#tab-video">{{'products.product.video' | t}}</a>
 {%- endif -%}
</div>
<div id="tab-description" class="tab-content" itemprop="description">
{{product.description}}</div>
<div id="tab-new" class="tab-content" itemprop="description">Tab Content <a 
href="/shiiping/page/link">Shipping</a></div>
<div id="tab-review" class="tab-content"><div id="shopify-product-reviews" 
data-id="{{product.id}}">{{product.metafields.spr.reviews}}</div></div>
{%- if product.featured_image.alt contains 'iframe' -%}
<div id="tab-video" class="tab-content">{{product.featured_image.alt}}</div>
{%- endif -%}

Here is what it looks like now

非常感谢你!

1 个答案:

答案 0 :(得分:0)

更改

<div id="tab-new" class="tab-content" itemprop="description">Tab Content <a 
href="/shiiping/page/link">Shipping</a></div>

<div id="tab-new" class="tab-content" itemprop="description">{{pages.shipping.content}}<a 
href="/shiiping/page/link">Shipping</a></div>

请进一步注意,您应该在此代码和the code in the original question中将“shiiping”更正为“送货”。