简体   繁体   中英

Unable to add custom input to 3rd party symfony bundle

I have started to learn how to customize a theme for orocommerce , so far I have successfully changed the logo, but I have a problem with css loading. I have followed this tutorial: https://oroinc.com/orocommerce/doc/current/dev-guide/theme/layout but my css still won't load

Here is my bundle structure.

在此处输入图片说明

and here are my assets.yml file. 在此处输入图片说明

Is there something that I am missing?

Thank you

documentation that you use related to admin part of application. To customize front store part please read next documentation https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/LayoutBundle/Resources/doc/config_definition.md#assets

So, css styles from Resources/config/oro/assets.yml will not applied for front store part. To add new styles you need to add styles in Layout theme folder like in https://github.com/oroinc/orocommerce/blob/master/src/Oro/Bundle/ProductBundle/Resources/views/layouts/default/config/assets.yml .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM