Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. Change default favicon/shortcut icon from theme

Change default favicon/shortcut icon from theme

Added by Ole Trenner about 11 years ago

Hi,

So far I’ve created a custom theme using the openproject-plugin plugin ans successfully deployed and enabled it on our installation.

Now I would like to *replace the default theme favicon*/shortcut icon with a custom version from my custom theme.

Is that possible? If yes, how could I approach this?

Thanks a lot!
Ole.


Replies (6)

RE: Change default favicon/shortcut icon from theme - Added by Christian Ratz about 11 years ago

Hi Ole,

I don’t know the structure of your theme so it is hard to say. I added a theme skeleton in this thread
In a Theme like this you can just add your new favicon.icon to the following folder:

app/assets/images/shiny/

Best
Ratzi

RE: Change default favicon/shortcut icon from theme - Added by Ole Trenner about 11 years ago

Hi Ratzi,

my theme is structured paractically identical, but not quite :) I’ll take a look and see if I can figure out why this works for you and not for me :)

Just to elaborate: I can add assets to my theme and can access them, but existing assets like favicon.ico are not being overridden/replaced.

Cheers,
Ole.

RE: Change default favicon/shortcut icon from theme - Added by Christian Ratz about 11 years ago

Hi again,

you have to set the theme ‘assets_path’. See lib/open_project/themes/shiny/all.rb:9 and lib/open_project/themes/shiny.rb:6

Best
Ratzi

RE: Change default favicon/shortcut icon from theme - Added by Ole Trenner about 11 years ago

Wow, thank you, that actually did the trick!

Thanks again,
Ole.

RE: Change default favicon/shortcut icon from theme - Added by Christian Ratz about 11 years ago

You’re welcome.

If you have a look in ‘app/assets/stylesheets/shiny/_variables.css.sass’ you can may be improve your theme by just overriding the OpenProject core SASS variables so you don’t have to override the css Rules by hand.

Best
Ratzi

RE: Change default favicon/shortcut icon from theme - Added by Ole Trenner about 11 years ago

Thanks for the advice! I suppose this way it should be possible to adjust global values (like the highlight color) much quicker than by adjusting every single rule by hand. I’ll definitely give it a try! I’ve found a seemingly comprehensive list of variables in https://github.com/opf/openproject/blob/dev/app/assets/stylesheets/global/_variables.sass.

Thanks a lot for your support!
Best, Ole.

  • (1 - 6/6)
Loading...