Search code examples
javascriptcsssymfonysmartyprestashop

Prestashop 1.7 starter theme, assets in theme.yml is not working


I'm using the starter theme for Prestashop 1.7 https://github.com/PrestaShop/StarterTheme

Reading the documentation I found that I can add a js/css file for specific templates editing the theme.yml file, simply adding (just for example):

assets:
  css:
    all:
      - id: bootstrap-style
        path: assets/css/bootstrap.min.css
  js:
    product:
      - id: jquery
        path: assets/js/jquery.min.js
        priority: 200
        position: bottom

but it doesn't work.

Here is the doc: http://developers.prestashop.com/themes/assets/index.html

Any idea?


Solution

  • Solved.

    FYI here is the solution: https://github.com/PrestaShop/StarterTheme/issues/181#issuecomment-288043923

    Hope it helps.