How to use own images in customisation

Hi,

How can i insert images from customisation folder and render in templates?

Hey,

so you need to put the images in the folder named static inside your $CUSTOMIZATION_DIR folder.
After that it is just a matter of creating an <img /> HTML element with correct src attribute. As the documentation states

Static files may be added in <CUSTOMIZATION_DIR>/static. They can be
referenced in templates through the assets.custom endpoint.

For example:

<img src="{{ url_for('assets.custom', filename='<name of the file>') }}">

Hope that helps.

Regards,
Michal

Thanks, it works…!:relieved:

1 Like