Project

General

Profile

add a custom logo?

Added by Patricio Lopez over 13 years ago

Hello

I've been using redmine for a while and it's great, but 2 things come to my mind recently:

1º Can i add a jpg/png logo instead of the "title application"? (top left corner where the word Redmine appears here for example)

2º is there a way to put a favicon?

Thanks a lot for your time.


Replies (5)

RE: add a custom logo? - Added by Holger Just over 13 years ago

Patricio Lopez wrote:

1º Can i add a jpg/png logo instead of the "title application"? (top left corner where the word Redmine appears here for example)

You can either
  • change the view /app/views/layouts/base.rhtml
  • or create a new theme and add the logo via CSS (which would be the prefered solution to ease updates)

2º is there a way to put a favicon?

You can either replace the stock favicon in public/favicon.ico or use my favicon plugin and include the favicon in your theme.

--Holger

RE: add a custom logo? - Added by Andreas Kullmann about 13 years ago

Hello Holger,
Hello Patricio,

I added a Logo to the base.rthml as instructed in HowTo_add_a_logo_to_your_Redmine_banner. Changing a few things, my code reads:

<!--<h1><_%= page_header_title %></h1>-->
    <img alt="HWK Logo" id="HWK Logo" src="/images/hwklogo.png" />

Unfortunately the logo.png is not rendered (neither IE or FF). The <alt> tag is displayed. I have tried all kind of file references, but nothing made it work. I also tried using a image coming with the installation, again no luck. I restarted the apache services with every change. Are the any special attributes such as size to be considered for the png file? Are the any special steps importing a picture file or referencing it in <src>?

I run redmine 1.0.0. (the Bitnami Stack) on a W2K3 environment.
I hope you can give me some advice or hint to the right direction.

RE: add a custom logo? - Added by Andreas Kullmann about 13 years ago

... forgot.. thanks for your time...

RE: add a custom logo? - Added by ionut rascanu over 12 years ago

Helpfully for other redmine users will be to explain also what was your issue and not a simple "forget it" because on google search they will reach this post and your "forget it".
Thank you, Ionut

RE: add a custom logo? - Added by Mark Anderson over 6 years ago

Old post, but I was looking to add a logo too!

His error is possibly in not following the instructions fully. The correct line from the wiki is:

     <img src="<%= Redmine::Utils.relative_url_root %>/images/logo.png" style="margin-top: 15px; margin-left: 15px;"/>
which works because it uses the Utils function to properly generate the path to the image.

The OP's hard coded path is not necessarily correct at run time.

    (1-5/5)