How can I add an image using only Liquid code in the Debut theme?

baking_chambers
Visitor
2 0 0

Hi there,

Am using DEBUT theme.

I followed a tutorial to make 'About Page' have same style content blocks as 'home page' - but I have used up all my image blocks.  So now I need to add an image in using code only.

Screenshot 2021-04-15 at 09.06.35.png

I have tried using the code:   i found on an old thread from 2006 

<img src="{{ 'myimage.gif' | asset_url }}" style="height: YYpx; width: XXpx" title="My image" />

and have also tried this one:

<img src="{{ 'image.png' | file_img_url: '2048x2048' }}" />

 

maybe I am adding the image incorrectly... but i do see it when i go to https://cdn.shopify.com/s/files/1/0533/3116/5339/files/Dylan_Outside_The_Baking_Shed_256x256_crop_ce... 

 

the code i tried with the last attempt was:

<img src="{{ 'Dylan_Outside_The_Baking_Shed_256x256_crop_center.jpg' | https://cdn.shopify.com/s/files/1/0533/3116/5339/files/Dylan_Outside_The_Baking_Shed_256x256_crop_ce...: '500,534' }}" />

 

Please help?

 

 

Replies 3 (3)

Hardik29418
Shopify Partner
2913 419 1081

Please go to assets where you uploaded the image and copy the file name with its extension then paste it in the code.
Let me please update after doing this.

- Need a Shopify developer? Chat on WhatsApp or EMAIL ME!


- Your Coffee Tip would do Magic code ❤️
- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Email
baking_chambers
Visitor
2 0 0

Thats is what I did I believe - but I don't know if I have the right code to start with...

 

Hardik29418
Shopify Partner
2913 419 1081

I think I need to analyze your code by entering into your store.
Would you mind If I send you collaborate access ?

- Need a Shopify developer? Chat on WhatsApp or EMAIL ME!


- Your Coffee Tip would do Magic code ❤️
- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Email