Help with adding custom liquid block in collapsible content Dawn theme.

Help with adding custom liquid block in collapsible content Dawn theme.

DFU98
Excursionist
22 0 6

Need help with the same issue as this question

https://community.shopify.com/c/shopify-design/add-custom-liquid-block-inside-quot-collapsible-tab-q...

But with Dawn theme, the issue is that Dawn has a different structure than that theme so need help with the same thing, but in this case with Dawn.

Help would be appreciated.

Replies 4 (4)

LuffyOnePiece
Shopify Partner
650 93 120

Hi @DFU98 ,

 

To add the custom liquid code, one way is to create a page and select the page from the customization.

 

SandeepPangeni_0-1711101004181.png

 

Another way is to create a custom liquid field with a schema which would require a custom code.

 

If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sandeep Pangeni

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184

devmont-digital
Shopify Partner
165 33 42

Hello @DFU98,

 

To add a custom Liquid block within collapsible content in the Dawn theme, follow these steps:

  1. Navigate to Online Store -> Themes -> Edit Code.
  2. Find the file "main-product.liquid" and search for the word "collapsible_tab". Paste the code within this section.
{{ block.settings.custom-liquid }}

Group 101.png

     

     3. Next, search for the schema and locate the closing bracket for "collapsible_tab". Paste the code before this bracket. For your convenience, I have attached a screenshot.

{
          "type": "liquid",
          "id": "custom-liquid",
          "label": "Custom Liquid"
        }

Group 101.png

Found our answer helpful? If so, Don't forget to show your support by liking and accepting the solution.
Looking for more help and expert consultation? Feel free to contact us at Shopify Expert or visit our website www.devmontdigital.io
Hire us for your project by simply emailing us at sales@devmontdigital.io
DFU98
Excursionist
22 0 6

Hi @devmont-digital thanks for the tips, but in this case I'm not trying to do it for a product page. I want to do it in a custom page layout I'm making. Is there a way I can add the custom liquid block in collapsible row to it?

devmont-digital
Shopify Partner
165 33 42

Hello @DFU98,

 

To add a custom Liquid block within collapsible content in the Dawn theme, follow these steps:

  1. Navigate to Online Store -> Themes -> Edit Code.
  2. Find the file "collapsible-content". Paste the code within this section.

Group 101.png

 

   3. Next, search for the schema. Paste the code for your convenience, I have attached a screenshot.

{
    "type": "liquid",
    "id": "custom-liquid",
     "label": "Custom Liquid"
},

Group 101.png

Found our answer helpful? If so, Don't forget to show your support by liking and accepting the solution.
Looking for more help and expert consultation? Feel free to contact us at Shopify Expert or visit our website www.devmontdigital.io
Hire us for your project by simply emailing us at sales@devmontdigital.io