Added by Christian Schröter over 10 years ago
Hi there,
I’m looking for a way to change my OpenProject logo at the left top to a custom logo.
I tried to replace logo_openproject_white_big.png in app/assets/images with my logo and restart apache.
The logo is still the same.
Is there a way?
Thanks & regs
Replies (4)
Hello Christian,
You can create your own OpenProject theme. I explained how you can create one in this thread
In the theme you can just change the icon and the rest will look like the default theme.
Best
Ratzi
btw if you change the defaut logo like you did it you have to precompile the assets again but I suggest to use a theme otherwise you have to take care about your changed files at each update of OpenProject.
Best
Ratzi
I preferred edit lib/open_project/design.rb and change logo_openproject_white_big.png to my logo and copy my logo to /opt/openproject/app/assets/images/
I could adjust css pixeis etc
openproject run rake assets:precompile systemctl stop openproject systemctl start openproject
Don’t panic after restart system needs some time to back online …
For those who come from more 'traditional' development environments, as of OpenProject 12.5.8, this worked for me.
After a OpenProject package installation onto a Centos 7 deployment, the logo is located @
/opt/openproject/app/assets/images/logo_openproject_white_big.png
after replacing(overwriting) this file with your own logo, check that the proper owner and group are still associated with the file (ftp/sftp clients will replace the owner:group with the user performing the file replacement). The new file should reflect openproject:openproject as the owner and group.
The new logo file will need to be re-compiled into the public assets.
stop your existing service
compile the new assets
start the service
After the new public assets have been compiled, your compiled logo is located @
/opt/openproject/public/assets/logo_openproject_white_big-{asset-id}.png
... where it will be properly served by the web server in response to client browser requests.
This may be considered a hacking approach and will likely be rendered ineffective upon any upgrade to OpenProject itself. However, this approach can be effective for ad-hoc proof-of-concept demonstration purposes for cringy management who has come to expect every presentation to be custom branded to their organization.
In the spirit of proper attribution, I would like to thank everyone who suggested that I buy the Enterprise Edition for making me remember everything I had forgotten about html/css/sass/js/json/node/angular/react/ruby as well as the fact that free open source doesn't come without a cost.
If you want things to be easy, just buy the Enterprise Edition and keep some hungry devs fed!