Jump to content

Edit History

Minsky_ae

Minsky_ae


Add SOLVED to title

Hi,

I'm trying to understand how I'm supposed to add custom assets to a child theme. I followed the documentation but nothing seems to happen. 😕

assets:
  use_parent_assets: true

 css:
   all:
     - id: test
       path: assets/css/test.css

I tried to add the css part in theme.yml of the parent theme as well without success (I cleaned the cache after each update).

I would like to be able to add third-party libraries or my own file (CSS, JS) for all pages and for specific page as well. I'm already using custom.css and custom.js in child theme, those one work well.

Any help will be really appreciated, thanks!

 

EDIT

I found this old topic: https://www.prestashop.com/forums/topic/598436-how-to-add-custom-css-file-in-stylesheetstpl/

Cache is not enabled in my admin, neither CCC, I tried to activate/deactivate it, cleaned files under assets/cache but the test.css is still not loaded.

Minsky_ae

Minsky_ae


Add link to topic about same subject

Hi,

I'm trying to understand how I'm supposed to add custom assets to a child theme. I followed the documentation but nothing seems to happen. 😕

assets:
  use_parent_assets: true

 css:
   all:
     - id: test
       path: assets/css/test.css

I tried to add the css part in theme.yml of the parent theme as well without success (I cleaned the cache after each update).

I would like to be able to add third-party libraries or my own file (CSS, JS) for all pages and for specific page as well. I'm already using custom.css and custom.js in child theme, those one work well.

Any help will be really appreciated, thanks!

 

EDIT

I found this old topic: https://www.prestashop.com/forums/topic/598436-how-to-add-custom-css-file-in-stylesheetstpl/

Cache is not enabled in my admin, neither CCC, I tried to activate/deactivate it, cleaned files under assets/cache but the test.css is still not loaded.

Minsky_ae

Minsky_ae

Hi,

I'm trying to understand how I'm supposed to add custom assets to a child theme. I followed the documentation but nothing seems to happen. 😕

assets:
  use_parent_assets: true

 css:
   all:
     - id: test
       path: assets/css/test.css

I tried to add the css part in theme.yml of the parent theme as well without success (I cleaned the cache after each update).

I would like to be able to add third-party libraries or my own file (CSS, JS) for all pages and for specific page as well. I'm already using custom.css and custom.js in child theme, those one work well.

Any help will be really appreciated, thanks!

×
×
  • Create New...