Jump to content

Understanding register css in theme


Recommended Posts

Prestashop: 8.1.7

Despite prestashop documentation addresing theme registration of css, I not got this working.

This is my theme.yml, on my child theme, with classic as parent:

assets:
  use_parent_assets: false
  css:
    all:
      - id: custom-styles
      path: assets/css/styles.css
      media: all
      priority: 100

But despite being clearing cache in backoffice and deleting files in var/cache, the assets css is not loading.

In other side, [my theme]/assets/css/theme.css  does load by default, despite not being registered on theme.yml

Thank for your help.

Link to comment
Share on other sites

For those in this same situation.
I fix the problem.
Just switch theme for default theme (classic), and switch on again your child theme.
Seems like prestashop only detect changes on theme.yml when switch on.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...