How to apply custom stylesheet?


  • Used Zammad version: 3.4.0
  • OS: OpenSuse LEAP 15.2

Hi I tried to apply a new stylesheet. Is there a theming feature in current Zammad versions?

I followed Change the color of zammad theme - #3
I copied the stylesheet to /opt/zammad/app/assets/stylesheets/custom/custom.css
Then I did zammad run rails assets:precompile as root, but it fails like
sh: line 0: exec: rails: not found

try zammad run rake assets:precompile

This also fails like this:

# zammad run rake assets:precompile
Your Ruby version is 2.5.8, but your Gemfile specified 2.6.5

Two things:
Zammad 3.4 is terribly outdated and prune to security issues. Update now.
Make sure to update your Zammad installation according to the fitting update procedure depending on your installation type: Updating Zammad — Zammad documentation please also note dependency requirements so you’re not stuck during upgrade - ensure supported dependencies beforehand: Software — Zammad documentation

1 Like