How to add CSS files to Sylius theme?

I have a custom theme in app / theme / AcmeTheme. I have a work theme, and I can define my own templates under the views or override the template for other Bundles. The problem is that I cannot figure out how to add a custom CSS file inside my theme. I tried so hard:

AcmeTheme / state / style.css AcmeTheme / web / style.css

But after running the resources: install and sylius: theme: assets: the installation of the file is not copied. I have read the documentation several times and I still cannot get it to work.

+4
source share
3 answers

style.css app/themes/AcmeTheme/SyliusShopBundle/public/ sylius:theme:assets:install. style.css web/bundles/_themes/AcmeTheme/template/syliusshop/, html.twig <link rel="stylesheet" href="{{ asset('bundles/syliusshop/styles.css') }}">

+3

//AcmeTheme/web/assets/ . - //AcmeTheme/SyliusShopBundle/public/, .

+1

After this approach, my icons do not load. Everything else worked fine, but the icons did not load. Can anyone say what I don't see?

0
source

Source: https://habr.com/ru/post/1675155/


All Articles