Hi there,
so I am quiet new to this and I am lerning about writing sections at the moment. I am facing the following problem:
In the team member section I created you can input a picture, a name, a tittle and a brief description. Unfortunately when you add all this information instead of the Name being depicted in the customizer the title is displayed. In this use case it is vital that the name is displayed (see picture) in order to easily edit the entries.
I played around with the code I wrote for a couple of hours now but couldn’t figure out what has to be changed to display the name. Can you please enlighten me? ![]()
Heres the code:
##
{{section.settings.team_heading}}
{% for member in section.blocks %}
{% if member.settings.photo%}
{{ member.settings.photo | img_url: '300x' | img_tag}}
{% endif%}
### {{ member.settings.name}}
{{ member.settings.title}}
{{ member.settings.bio}}
{% endfor %}
{% schema %}
{
"name": "Team Members",
"class": "team_members_section",
"settings": [
{
"id": "team_heading",
"type": "text",
"label": "Section Title",
"default": "Team Members"
}
],
"blocks": [
{
"name": "Team Member",
"type": "staff-profile",
"settings": [
{
"type": "image_picker",
"id": "photo",
"label": "Photo"
},
{
"id": "name",
"type": "text",
"label": "Name"
},
{
"id": "title",
"type": "text",
"label": "Title"
},
{
"id": "bio",
"type": "textarea",
"label": "Bio"
}
]
}
],
"presets": [
{
"category": "Store Information",
"name": "Team Members"
}
]
}
{% endschema %}
