Skip to main content
⭐️ If you love EverShop, give it a star on GitHub. Thanks!

Static File Serving


For product images, category images we suggest to use the cloud storage. It is recommended for production use. Please check the available extensions in the EverShop Marketplace.

EverShop can serve static files, like images, under a folder called public in the root directory. Files inside public can then be referenced by your code starting from the base URL (/).

For example, if you add an image to public/banner.png, the following code will access the image:

<img src="/banner.png" />

This folder is also useful for robots.txt, favicon.ico, Google Site Verification, and any other static files (including .html)!


After the fresh installation of EverShop, you will have to create the public folder in the root directory of your project.


The folder name must be public, not publics or anything else.

Serving Static Files From Your Theme

If you have a theme, you can also serve static files from the theme's public folder. For example, if you have a theme called my-theme, you can add a public folder to it and put your static files in there. Then, you can access them from the base URL of your theme:

└── my-theme
├── public
│ └── banner.png

And you can access the image from the following URL:

<img src="/banner.png" />