Alterando/Editando o botão "Ver tudo" no Shopify

Changing/Editing the "View All" button in Shopify 

Personalize seu tema. Nenhuma experiência de codificação é necessária. NOTA: O código pode ser diferente de acordo com o seu tema.

Para iniciar:

1. Vá para o seu tema

2. Clique em "editar código"

3. Vá para a pasta Seção e encontre collection.liquid ou pode ser feature-products.liquid para outros.

4. Encontre a seção view_all

5. Em vez de substituir todo o código "<a href /a>", precisaremos apenas substituir " {{ 'collections.general.view_all' | t }" with the code below

{{ section.settings.button_label | escape }}


6. Then go to your schema and add a text box before the "]" before going to "presets"

, { "type" : "text" ,
 "id" : "button_label" ,
 "label" : {
 "cs" : "Text tlačítka" ,
"da" : "Knaptekst" , "de" : "Nome do botão" , "pt" : "Etiqueta do botão" , "es" : "Etiqueta de botão" , "fi" : "Tekstipainike" , "fr" : "Texto do botão" , "it" : "Etichetta pulsante" , "ja" : "ボタンのラベル" , "ko" : "버튼 레이블" , "nota" : "Knappetikett" , "nl" : "Knoplabel" , "pl" : "Przycisk z etykietą" , "pt-BR" : "Etiqueta de botão" , "pt-PT" : "Etiqueta do botão" , "sv" : "Knappetikett" , "th" : "ป้ายกำกับปุ่ม" , "tr" : "Düğme etiqueta" , "vi" : "Nhãn nút" , "zh-CN" : "按钮标签" , "zh-TW" : "按鈕標籤" } }

7. Clique em Salvar

8. Vá para o seu tema novamente e clique em Personalizar

9. Adicione uma coleção de recursos e deve haver uma seção para o rótulo do botão

Deixe-me saber se você tem perguntas

6 comentários

Hi VOLODYMYR,

This code is for legacy themes only.

Made4Uo

Hi
I have some issues with this code
https://prnt.sc/Gsy4MCw50orx

My theme is Taste

Volodymyr

Hi @PETER SNOWDEN,

The edits is for the legacy themes. Make sure to check in your theme editor. There might be a checkbox available to show the “View all” button.

Made4Uo

Hi, i am trying to place this code for “view all button” into dawn theme. Comes back with error when I try to save.
“unable to update the file invalid json in tag ‘schema’”.
I am placing code into collection-list.liquid.
Can you help?
regards
Peter

peter snowden

Hi @Rose Alexander. I think I replied to you already via “chat with us.” Anyway, I updated the code so you only have to find the view_all translation and replace it

Made4uo

Hello Made4uo,
I have tried to add your code to my Shopify Venture Theme to change the Section code in collection-list-item liquid to change View All collection buttons on Homepage. My Venture Theme does not have a Section: collections.liquid.
Can you please help with this?
I would like to change home page buttons to Shop Now.
Thank you kindly,

rose
Gaysha Chalk Paint

Rose Alexander

Deixe um comentário