Llo*_*unt 0 themes yaml prestashop prestashop-1.7
使用Prestashop 1.7并更新了我的theme.yml文件,如下所示,但未添加到文件中。该文件位于该目录中,但没有被拉入。对代码有任何建议吗?我想包含JS文件,但没有被拉入。
assets:
# If you're using this theme as child and you want to load
# the parent theme assets, uncomment this line.
# use_parent_assets: true
# The following lines are showing how to load assets in your page
# Uncomment and change value to start loading css or js files
css:
all:
- id: theme-custom
path: assets/css/custom.css
# product:
# - id: product-style
# path: assets/css/product.css
# media: all
# priority: 200
js:
all:
- id: slick
path: assets/js/external-lib.js
priority: 30
position: bottom
cart:
- id: theme-custom
path: assets/js/custom.js
Run Code Online (Sandbox Code Playgroud)
您需要手动删除或重命名文件
config/themes/{theme_name}/shop{shopid}.json
Run Code Online (Sandbox Code Playgroud)
那个优先。已经针对1.7.1进行了报告和解决。然后,资产中的代码将被添加到缓存的代码中(以减少文件加载的数量)。
| 归档时间: |
|
| 查看次数: |
3025 次 |
| 最近记录: |