Linking to images from assets/img folder in bigcommerce stencil -
im building bigcommerce stencil theme , need way link images in assets/img
folder... tried following...
<img src="{{cdn "webdav:assets/img/logo-bug.svg"}}">
, <img src="/assets/images/logo-bug.svg">
neither worked in both after bundling , uploading theme.
http://***.mybigcommerce.com/assets/images/logo-bug.svg failed load resource: server responded status of 404 (not found)
ive tried several other combinations nothing seems work.
to call images inside theme's assets/img folder, use cdn handlebar helper below.
<img src="{{cdn 'img/filename.jpg'}}">
to call images inside webdav content folder, use cdn helper webdav prefix. webdav file structure content/img/filename.jpg
<img src="{{cdn "webdav:img/image.jpg"}}">
to call images inside projects assets/scss files, use following structure.
background: #fff url("../img/filename.jpg") no-repeat 50% 50%;
Comments
Post a Comment