Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Add own custom snippet for all sections that i want

Solved

Add own custom snippet for all sections that i want

jango81
Visitor
3 0 0

Can i create own snippet and then dynamically add it to section that i want in editor? So I mean to avoid writing a render tag in the code for each required section. I know about theme blocks but they are available as part of the Flex sections developer preview.

Accepted Solution (1)
pawankumar
Shopify Partner
627 93 115

This is an accepted solution.

If you check as an example on product template in theme customizer, you can
add a custom liquid block that allows you to add custom liquid code
- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan

View solution in original post

Replies 3 (3)

pawankumar
Shopify Partner
627 93 115

Hi @jango81 
You can use custom liquid block where you can write liquid code directly in section blocks
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan
jango81
Visitor
3 0 0

It would be better if you'll give me a small example, because i dont get it :D.

 

 

pawankumar
Shopify Partner
627 93 115

This is an accepted solution.

If you check as an example on product template in theme customizer, you can
add a custom liquid block that allows you to add custom liquid code
- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan