Moin,
ich habe den folgenden Liquid-Code eingefügt. Auf der Anpassungsseite ist soweit alles in Ordnung.
Leider wird die Section auf dem Desktop nicht mittig angezeigt, auf dem Handy allerdings schon.
Es gibt leider vom Prestige Theme keine eigene Logo oder Icon-Section, deswegen probiere ich es mit dieser.
Eine App will ich aufgrund der Performance ungerne verwenden.
Kann jemand helfen? ![]()
Code:
@media only screen and (max-width: 767px) { .icon-list-section .icon-list-item { width: 50%; float: left; } } @media only screen and (min-width: 768px) { .icon-list-section { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; } .icon-list-section .icon-list-item { flex: 1 1 150px; margin: 0 15px; } } .logo-bar-section { max-width: {{ section.settings.logo_width }}; display: inline-block; margin: 0 27.5px 35px; text-align: center; } .logo-bar-section p { margin-top: 10px; }{{ section.settings.title | escape }}
{% if section.blocks.size > 0 %}-
{% for block in section.blocks %}
-
{% if block.settings.link != blank %}
{% endif %}
{% if block.settings.image != blank %}
{{ block.settings.image | img_url: '150x150', scale: 2 | img_tag: block.settings.image.alt, 'logo-bar__image' }}
{% else %}
{{ 'logo' | placeholder_svg_tag: 'placeholder-svg' }}
{% endif %}
{% if block.settings.link != blank %}
{% endif %}
{% if block.settings.text != blank %}
{{ block.settings.text }}
{% endif %}
{% endfor %}
{% schema %}
{
“name”: “Logo list”,
“class”: “index-section”,
“max_blocks”: 10,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Logo list”
},
{
“type”: “select”,
“id”: “logo_width”,
“label”: “Logo width”,
“default”: “150px”,
“options”: [
{
“label”: “Extra Small”,
“value”: “100px”
},
{
“label”: “Small”,
“value”: “125px”
},
{
“label”: “Medium”,
“value”: “150px”
},
{
“label”: “Large”,
“value”: “175px”
},
{
“label”: “Extra Large”,
“value”: “200px”
}
]
}
],
“blocks”: [
{
“type”: “logo_image”,
“name”: “Logo”,
“settings”: [
{
“type”: “image_picker”,
“id”: “image”,
“label”: “Image”
},
{
“type”: “url”,
“id”: “link”,
“label”: “Link”,
“info”: “Optional”
},
{
“type”: “text”,
“id”: “text”,
“label”: “Text”,
“default”: “Logo Text”
}
]
}
],
“presets”: [
{
“name”: “Logo list”,
“category”: “Image”,
“blocks”: [
{
“type”: “logo_image”
},
{
“type”: “logo_image”
},
{
“type”: “logo_image”
},
{
“type”: “logo_image”
}
]
}
]
}
{% endschema %}