![](/img/trans.png)
[英]Remove a particular section from {{ content_for_layout }} in shopify template
[英](Shopify) Error: Missing {{content_for_layout}} in the body section of the template
您可以將其注釋掉,如下所示:
{% comment %}
<main role="main">
{{ content_for_layout }}
</main>
{% endcomment %}
此外,您可以在開始的主標簽中使用style="display: none" :
<main role="main" style="display:none">
{{ content_for_layout }}
</main>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.