最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

cdn - How to use image from WebDev of BigCommerce in theme file? - Stack Overflow

programmeradmin0浏览0评论

How to add dynamic cdn url for BigCommerce Web Dev file?

Added this:

<img src=".jpg" width="1920" height="600">

I want to add dynamic CDN url like this but not working.

<img src="{{cdn 'content/carousel/1920x600-3.jpg'}}" width="1920" height="600">

For access assests folder of theme file this below url is working <img src="{{cdn 'assets/carousel/1920x600-3.jpg'}}" width="1920" height="600"> we want to access images from BigCommerce WebDev File Manager.

How to add dynamic cdn url for BigCommerce Web Dev file?

Added this:

<img src="https://cdn11.bigcommerce/s-xw5rimf0vt/content/carousel/1920x600-3.jpg" width="1920" height="600">

I want to add dynamic CDN url like this but not working.

<img src="{{cdn 'content/carousel/1920x600-3.jpg'}}" width="1920" height="600">

For access assests folder of theme file this below url is working <img src="{{cdn 'assets/carousel/1920x600-3.jpg'}}" width="1920" height="600"> we want to access images from BigCommerce WebDev File Manager.

Share Improve this question edited Feb 1 at 5:58 Chintan Patel - Riseotech Pvt. asked Feb 1 at 5:56 Chintan Patel - Riseotech Pvt.Chintan Patel - Riseotech Pvt. 34 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

There are 2 ways to load images from WebDAV on your storefront.

You can use the absolute path to the images: <img src="https://cdn11.bigcommerce/s-xw5rimf0vt/content/carousel/1920x600-3.jpg" width="1920" height="600">

Or, you can use the WebDAV CDN path: <img src="{{cdn 'webdav:carousel/1920x600-3.jpg'}}" width="1920" height="600">

发布评论

评论列表(0)

  1. 暂无评论