Theme Sections > Default configuration - error when poining out to image

TwoColors
Shopify Partner
78 0 23

Hey, I have technical question regarding theme development, specifically theme sections. I have a question about default settings of section: https://shopify.dev/docs/themes/sections#default Default works fine when it comes to string, but when trying to set up image, Theme Kit returns either "Invalid default: invalid block 'introduction': Setting 'image' does not point to an applicable resource" or "Invalid default: invalid block 'introduction': Setting 'image' must be a valid shopify url". I tried every different image url format, for example:

cdn.shopify.com/s/files/1/0412/8007/7977/files/home-office-supplies-set-out-by-computer.jpg

https://cdn.shopify.com/s/files/1/0412/8007/7977/files/home-office-supplies-set-out-by-computer.jpg

https://www.cdn.shopify.com/s/files/1/0412/8007/7977/files/home-office-supplies-set-out-by-computer....

etc. but nothing seems to work.  I basically need image url format that works for Shopify, or maybe it's Theme Kit issue?

Maciej Tokarczyk
Replies 3 (3)

KoalaDen
Shopify Partner
2 0 0

I really hope someone responds to this

 

KoalaDen
Shopify Partner
2 0 0

tyleratdayjob
Shopify Partner
1 0 0
in case it helps someone coming to this in 2024 you've gotta format an image URL that looks like this:
 
https://cdn.shopify.com/s/files/1/1234/1234/1234/files/file-name.png?v=123456789
 
to look like this:
 
shopify:\/\/shop_images\/file-name.png