Is there a flag I need to set in the “home-faq.liquid” file so I can drag the FAQ section higher up? Currently it is stickied to the footer of my home page.
oh sorry for that issue can you please share this section code
Thanks for the reply, here is the code:
{% if section.settings.image != blank %}
{% endif %}
{% if section.blocks.size > 0 %}
<dl>
{% for block in section.blocks %}
{% if block.type == "heading" %}
{% if block.settings.heading != blank %}
## {{ block.settings.heading }}
{% endif %}
{% endif %}
{% if block.settings.title != blank %}
<dt></dt>
<dd>
{{ block.settings.subtitle }}
</dd>
{% endif %}
{% endfor %}
</dl>
{% endif %}
{% schema %}
{
"name": "FAQs",
"class": "faq-template-section banner-option",
"settings": [
{
"type": "header",
"content": "Banner"
},
{
"type": "image_picker",
"id": "image",
"label": "Image",
"info": "1600 x 600px recommended"
},
{
"type": "checkbox",
"id": "wide_display",
"label": "Wide display",
"default": true
},
{
"type": "text",
"id": "title",
"label": "Heading"
},
{
"type": "richtext",
"id": "subtext",
"label": "Text"
},
{
"type": "select",
"id": "text_position",
"label": "Text position",
"options": [
{
"value": "left",
"label": "Left"
},
{
"value": "center",
"label": "Center"
},
{
"value": "right",
"label": "Right"
}
],
"default": "center"
},
{
"type": "select",
"id": "text_align",
"label": "Text alignment",
"options": [
{
"value": "left",
"label": "Left"
},
{
"value": "center",
"label": "Center"
},
{
"value": "right",
"label": "Right"
}
]
}
],
"blocks": [
{
"name": "Heading",
"type": "heading",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Heading",
"default": "Title"
}
]
},
{
"name": "Frequently Asked Question",
"type": "Content",
"settings": [
{
"type": "text",
"id": "title",
"label": "Question"
},
{
"type": "richtext",
"id": "subtitle",
"label": "Answer"
}
]
}
],
"default": {
"settings": {
"title": ""
},
"blocks": [
{
"type": "heading",
"settings": {
"heading": ""
}
},
{
"type": "Content",
"settings": {
"title": "",
"subtitle": ""
}
},
{
"type": "Content",
"settings": {
"title": "",
"subtitle": ""
}
},
{
"type": "Content",
"settings": {
"title": "",
"subtitle": ""
}
},
{
"type": "Content",
"settings": {
"title": "",
"subtitle": ""
}
},
{
"type": "Content",
"settings": {
"title": "",
"subtitle": ""
}
},
{
"type": "Content",
"settings": {
"title": "",
"subtitle": ""
}
}
]
}
}
{% endschema %}
great thanks for code can you please update
{% if section.settings.image != blank %}
{% endif %}
{% if section.blocks.size > 0 %}
<dl>
{% for block in section.blocks %}
{% if block.type == "heading" %}
{% if block.settings.heading != blank %}
## {{ block.settings.heading }}
{% endif %}
{% endif %}
{% if block.settings.title != blank %}
<dt></dt>
<dd>
{{ block.settings.subtitle }}
</dd>
{% endif %}
{% endfor %}
</dl>
{% endif %}
{% schema %}
{
"name": "FAQs",
"class": "faq-template-section banner-option",
"settings": [
{
"type": "header",
"content": "Banner"
},
{
"type": "image_picker",
"id": "image",
"label": "Image",
"info": "1600 x 600px recommended"
},
{
"type": "checkbox",
"id": "wide_display",
"label": "Wide display",
"default": true
},
{
"type": "text",
"id": "title",
"label": "Heading"
},
{
"type": "richtext",
"id": "subtext",
"label": "Text"
},
{
"type": "select",
"id": "text_position",
"label": "Text position",
"options": [
{
"value": "left",
"label": "Left"
},
{
"value": "center",
"label": "Center"
},
{
"value": "right",
"label": "Right"
}
],
"default": "center"
},
{
"type": "select",
"id": "text_align",
"label": "Text alignment",
"options": [
{
"value": "left",
"label": "Left"
},
{
"value": "center",
"label": "Center"
},
{
"value": "right",
"label": "Right"
}
]
}
],
"blocks": [
{
"name": "Heading",
"type": "heading",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Heading",
"default": "Title"
}
]
},
{
"name": "Frequently Asked Question",
"type": "Content",
"settings": [
{
"type": "text",
"id": "title",
"label": "Question"
},
{
"type": "richtext",
"id": "subtitle",
"label": "Answer"
}
]
}
],
"presets": [
{
"name": "FAQs",
"settings": {
"title": "FAQs"
}
}
]
}
{% endschema %}
Thank you so much.
its my pleasure to help us
