我如何在所有列出的项目上添加要点(可折叠内容)DAWN

发布于 2025-01-09 04:30:21 字数 1293 浏览 3 评论 0原文

我正在尝试使用 Shopify 获取黎明主题上该选项卡(可折叠内容)上所有列出的项目的要点。但我设法在第一项上得到它,您可以在此处查看预览网址: https://1524t2hmp2urghsm-53196980409 .shopifypreview.com

这是代码引用的一部分 问题:

{%- when 'collapsible_tab' -%}
           <div class="product__acordion_container">
            <div class="product__accordion accordion" {{ block.shopify_attributes }}>
              <details id="Details-{{ block.id }}-{{ section.id }}">
                <summary>
                  <div class="summary__title">
                    {% render 'icon-accordion', icon: block.settings.icon %}
                    <h2 class="h4 accordion__title">
                      {{ block.settings.heading | default: block.settings.page.title }}
                    </h2>
                  </div>
                  {% render 'icon-caret' %}
                </summary>
                <ul>
                 <li id="ProductAccordion-{{ block.id }}-{{ section.id }}">{{ block.settings.content }}</li>
                  {{ block.settings.page.content }}
                </ul>
              </details>
            </div>
           </div>

im trying to get bullet points on all listed items on that tab (collapsible content) on dawn theme with shopify. But i managed to get that just on first item, you can check here with preview url: https://1524t2hmp2urghsm-53196980409.shopifypreview.com

and here is part of code reference this issue:

{%- when 'collapsible_tab' -%}
           <div class="product__acordion_container">
            <div class="product__accordion accordion" {{ block.shopify_attributes }}>
              <details id="Details-{{ block.id }}-{{ section.id }}">
                <summary>
                  <div class="summary__title">
                    {% render 'icon-accordion', icon: block.settings.icon %}
                    <h2 class="h4 accordion__title">
                      {{ block.settings.heading | default: block.settings.page.title }}
                    </h2>
                  </div>
                  {% render 'icon-caret' %}
                </summary>
                <ul>
                 <li id="ProductAccordion-{{ block.id }}-{{ section.id }}">{{ block.settings.content }}</li>
                  {{ block.settings.page.content }}
                </ul>
              </details>
            </div>
           </div>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

予囚 2025-01-16 04:30:21

https://ed.codes/blogs/tutorials/add-a-youtube-video-inside-collapsible-row-block-accordion-on-shopify-product-page 使用此vid 将元素添加到块中

,然后在液体中添加容器

<p> 
{% if product.metafields.custom.METAFIELDNAME %}
<div class="product-features__features Container">       
{{product.metafields.custom.METAFIELDNAME}}
    </div>
{% endif %} 
</p>

,然后作为多行文本元字段链接到 HTML 格式的列表。

https://ed.codes/blogs/tutorials/add-a-youtube-video-inside-collapsible-row-block-accordion-on-shopify-product-page use this vid to add the element to the block

then add a container in the liquid

<p> 
{% if product.metafields.custom.METAFIELDNAME %}
<div class="product-features__features Container">       
{{product.metafields.custom.METAFIELDNAME}}
    </div>
{% endif %} 
</p>

and then link to the HTML formatted list as a multi-line text meta field.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文