Jump to content

Edit History

HarmSmits

HarmSmits

Hello,

Every time PrestaShop tries to load inline styles it throws an error with the incorrect root path, any clues?

```file_get_contents(/themes/MY_THEME/assets/css/inline-menu.css): failed to open stream: No such file or directory in /data/www/dev.DOMAIN.com/classes/assets/StylesheetManager.php on line 140```

Thank you for your help.

HarmSmits

HarmSmits

Hello,

 

I have been trying to get some inline stylesheets to register from my theme.yml, however, they end up being simply called by url every time. I dont know if this is supported by prestashop but it seems like it is as inline stylesheets can be registered in the asset managers.

 

This is what I have in my theme.yml file:

 

```

assets:
  css:
    all:
      - id: core-menu-styles
        path: assets/css/inline-menu.css
        media: all
        priority: 1
        inline: y

      - id: core-styles
        path: assets/css/inline.css
        media: all
        priority: 1
        inline: y

```

 

Thank you for your help.

×
×
  • Create New...