OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Add custom CSS to frontend

This topic contains 1 reply, has 2 voices, and was last updated by  Nikita Makarov 6 years, 6 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #31267

    manuel-tyfc
    Participant

    Dear OroCommerce team (Dear Michael? :) )

    I currently try to add some custom CSS to our OroCommerce frontend.
    In order to do this, I’ve been following this guide:

    https://www.orocrm.com/doc/current/book/layout

    As of now, my CSS is added to the admin panel, but does not appear in the frontend.
    Here’s what I did so far:

    1. I created a new bundle: /src/Myorganisation/MyBundle (including the required PHP class and oro/config.yml files)
    2. I added an assets.yml file here: /src/Myorganisation/MyBundle/Resources/config/assets.yml

    The assets.yml file looks like this:

    The guide does mention this:
    Then, embed your styles in the main layout template using the oro_css Twig tag:

    Which I have been unable to do . Maybe this is related? In this case, What is the “main layout template”?

    I’m a bit at a loss. How come the CSS is added to the back- but not the frontend?
    Thank you very much for your help.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #31268

    Nikita Makarov
    Participant

    Hello, manuel-tyfc.

    Following documentation, your assets.yml should look like following

    Seems you have missed root node “assets:

Viewing 1 replies (of 1 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top