Nos dedicamos a oferecer a melhor experiência de navegação em sua loja. Por isso, implementamos um carrossel de texto que destaca informações importantes para seus clientes.
Com esse carrossel de texto, seus clientes podem visualizar avisos, promoções ou mensagens essenciais enquanto navegam em seu site, garantindo que não percam nenhuma informação relevante.
Esse script funciona em qualquer tema shopify 2.0
{% for block in section.blocks %}
-
{% unless block.settings.url == blank %}
{% endunless %}
{% if block.type == 'image' %}
{% else %}
{{ block.settings.text }}
{% endif %}
{% unless block.settings.url == blank %}
{% endunless %}
{% endfor %}
{% schema %}
{
"name": "Carrossel de texto",
"class": "shopify-section--announcement-bar",
"settings": [
{
"type": "header",
"content": "Geral"
},
{
"type": "checkbox",
"id": "padding_top_down",
"label": "Ativar espaçamento",
"default": true
},
{
"type": "color",
"id": "background_1",
"label": "Cor de fundo 1",
"default": "#212529"
},
{
"type": "color",
"id": "background_2",
"label": "Cor de fundo 2",
"default": "#212529"
},
{
"type": "color",
"id": "text_color",
"label": "Cor do texto",
"default": "#ffffff"
},
{
"type": "select",
"id": "text_transform",
"label": "Transformação de texto",
"default": "capitalize",
"options": [
{ "value": "", "label": "normal" },
{ "value": "capitalize", "label": "iniciar com maiúscula" },
{ "value": "lowercase", "label": "minúsculas" },
{ "value": "uppercase", "label": "maiúsculas" }
]
},
{
"type": "range",
"id": "size-font",
"label": "Tamanho do texto",
"min": 0,
"max": 30,
"step": 1,
"default": 15
},
{
"type": "text",
"id": "list_label",
"label": "Rótulo da lista",
"default": "Recursos Promocionais",
"info": "Usado para fins de acessibilidade"
},
{
"type": "header",
"content": "Efeito"
},
{
"type": "range",
"id": "animation_duration",
"label": "Duração da animação",
"min": 0,
"max": 60,
"step": 1,
"default": 40,
"unit": "seg"
},
{
"type": "select",
"id": "marquee_direction",
"label": "Direção do carrossel",
"default": "left",
"options": [
{ "value": "left", "label": "esquerda" },
{ "value": "right", "label": "direita" }
]
},
{
"type": "select",
"id": "separator",
"label": "Separador",
"default": "separator-dot",
"options": [
{ "value": "", "label": "Nenhum" },
{ "value": "separator-dot", "label": "Ponto" }
]
},
{
"type": "header",
"content": "Espaçamento",
"info": "Espaçamento o texto."
},
{
"type": "range",
"id": "gap",
"label": "Espaço",
"min": 0,
"max": 12,
"step": 1,
"default": 6
}
],
"blocks": [
{
"type": "texto",
"name": "Texto",
"settings": [
{
"type": "text",
"id": "text",
"label": "Texto"
},
{
"type": "url",
"id": "url",
"label": "URL"
}
]
},
{
"type": "image",
"name": "Imagem",
"settings": [
{
"type": "image_picker",
"id": "img",
"label": "Imagem"
},
{
"type": "text",
"id": "img_width",
"label": "Largura da Imagem (px)",
"default": "120"
},
{
"type": "url",
"id": "url",
"label": "URL"
}
]
}
],
"presets": [
{
"name": "Carrossel de texto",
"category": "General",
"blocks": [
{
"type": "texto",
"settings": {
"text": "Uma Mensagem Promocional"
}
},
{
"type": "texto",
"settings": {
"text": "Mais uma Mensagem Promocional"
}
},
{
"type": "texto",
"settings": {
"text": "Tente Manter Curto"
}
},
{
"type": "texto",
"settings": {
"text": "4-7 Mensagens Funcionam Melhor"
}
},
{
"type": "texto",
"settings": {
"text": "Ajuste as configurações da seção conforme Necessário"
}
}
]
}
]
}
{% endschema %}