【问题标题】:How to get tag <head> description product in shopify如何在shopify中获取标签<head>描述产品
【发布时间】:2021-03-26 03:47:34
【问题描述】:

我想在产品描述 [1] 中获取标签头:https://i.stack.imgur.com/LJ19D.png

https://i.stack.imgur.com/xXaef.png

进入标签里

那我该怎么办?

https://i.stack.imgur.com/RxNvG.png

【问题讨论】:

标签: shopify liquid


【解决方案1】:

在这种情况下,首先你应该在head标签的前后添加特定的字符

例如,&lt;!-- split-production --&gt; Production Details &lt;!-- split-production --&gt;

然后你可以像这样{% assign productDescription = product.description | split:"&lt;!-- split-production --&gt;"%}&lt;!-- split-production --&gt;分割

然后将其显示为数组! {{ productDescription[0] }}等...

【讨论】:

    【解决方案2】:
    1. 您需要选择文本并使用列表选项创建列表。
    2. 选择要添加到标题标签中的文本。 这样就可以在 li 标签中添加 head 标签。

    【讨论】:

      猜你喜欢
      • 2021-09-14
      • 1970-01-01
      • 2019-10-04
      • 2016-10-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多