Custom CSS won't work

My custom css doesn’t applied on the pages.

I added my custom css under /opt/zammad/app/assets/stylesheets/custom/own.css like it is mention in the /opt/zammad/app/assets/stylesheets/application.css:

  • This is a manifest file that’ll automatically include all the stylesheets available in this directory
  • and any sub-directories. You’re free to add application-wide styles to this file and they’ll appear at
  • the top of the compiled file, but it’s generally better to create a new file per style scope.

To make it simple an test it, my own.css had only three lines:

body {
border: 5px solid red;
}

Is there some option or settings, to activate this?

Hi,

you need to recompile the assets:

zammad run rake assets:precompile

After that restart the zammad service and you should be fine.

regards

2 Likes

Perfect! That was the missing piece of the puzzle.

Thank you very much :smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.