-1

自定义主题时没有添加关闭按钮的选项,因此我必须手动将代码添加到 header.liquid 文件中。但我不确定在哪里或什么。请协助。

4

1 回答 1

0

您可以在头文件中添加类似的内容:

<button type="button" class="text-link notification__close" id="NotificationPromoClose"> 
 {% render 'icon-close' %}
  <span class="icon__fallback-text">{{ 'cart.general.close_notification' | t }}</span></button>
于 2022-02-13T22:31:25.183 回答