我正在定制shopify主题。“在我的主页上”;添加“第”节;我没空
我可以通过添加{%section'标题文本“%”以编程方式将其添加到我的页面主页中,但我想通过“addsection”GUI添加它。我看了类似的问题,在index.liquid和{%schema%}和{%endschema%}中有{{{content}u for_index}}} 这是我的代码主题我正在定制shopify主题。“在我的主页上”;添加“第”节;我没空,shopify,Shopify,我可以通过添加{%section'标题文本“%”以编程方式将其添加到我的页面主页中,但我想通过“addsection”GUI添加它。我看了类似的问题,在index.liquid和{%schema%}和{%endschema%}中有{{{content}u for_index}}} 这是我的代码主题 <!DOCTYPE html> <html> <head> <title>{{ page_title }}</title&
<!DOCTYPE html>
<html>
<head>
<title>{{ page_title }}</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="{{ page_description | escape }}" />
<link rel="canonical" href="{{ canonical_url }}" />
<meta
name="viewport"
content="width=device-width,initial-scale=1,shrink-to-fit=no"
/>
{{ content_for_header }}
<!-- Header hook for plugins -->
{{
"application.scss" | asset_url | stylesheet_tag
}}
</head>
<body>
<header class="container-fluid">
<nav class="nav-holder">
<a href="/" class="logo main"><h1>Dreamy Cream</h1></a>
<div class="nav__button" id="burger">{% include 'icon-navicon' %}</div>
<div class="nav-links" id="menu">
<ul class="nav-items">
{% for link in linklists.main-menu.links %} {% assign
child_list_handle = link.title | handleize %}
<li>
<a href="{{ link.url }}">{{ link.title }}</a>
</li>
{% endfor %}
</ul>
<a href="/cart" class="shopping-cart">{% include 'icon-cart' %}</a>
</div>
</nav>
{% section 'header-text' %}
</header>
<main role="main">
{{ content_for_layout }}
</main>
{{ "application.js" | asset_url | script_tag }}
</body>
</html>
{{page_title}}
{{content_for_header}}
{{
“application.scss”|资产| url |样式表|标记
}}
{%include'图标导航图标“%”
{%for linklists.main-menu.links%}{%assign
child_list_handle=link.title|handleize%}
-
{%endfor%}
{%section'标题文本“%”
{{content{u for{u layout}}
{{“application.js”|资产| url |脚本标记}
header-text.liquid
<div class="nav__title main" id="{{section.settings.id}}">
<h1>{{section.settings.title}}</h1>
</div>
{% schema %}
{
"name": "opening text",
"class": "opeaning-text-section",
"settings": [
{
"id": "title",
"type": "text",
"label": "Section Title ",
"default": "Taste the intensity"
}
] ,
"presets": [
{
"name": "Title Text",
"category":"Store information"
}
]
}
{% endschema %}
{{section.settings.title}
{%schema%}
{
“名称”:“开场白”,
“类”:“操作单元文本部分”,
“设置”:[
{
“id”:“标题”,
“类型”:“文本”,
“标签”:“章节标题”,
“默认值”:“体验强度”
}
] ,
“预设”:[
{
“名称”:“标题文本”,
“类别”:“门店信息”
}
]
}
{%endschema%}
因此,我需要一个在theme.liquid{%section'标题文本“%”中编程的节
我找到了解决方案因此,我需要一个在theme.liquid{%section'头文本“%”中编程的节 我找到了解决办法