[horde] horde5 themes

Michael M Slusarz slusarz at horde.org
Tue Jul 23 16:53:05 UTC 2013


Quoting Andreas Schulze <sca at andreasschulze.de>:

> Hello,
>
> I tried to replace the hordelogo in the upper left corner.
>
> I read http://wiki.horde.org/Doc/Dev/ThemesH5 and created  
> horde/themes/mytheme/
> I added horde/themes/mytheme/info.php:
> <?php
> $theme_name = _("My Theme");
>
> Then I put my image (nearly same size) as  
> horde/themes/mytheme/graphics/logo.png
> No success. I cleared any caches.
>
> I had to add a cssfile horde/themes/mytheme/screen.css
> #horde-logo {
>     float: left;
>     width: 83;
>     height: 31px;
>     background-image: url("graphics/logo.png");
>     background-repeat: no-repeat;
> }
>
> Then my image was visible...
> Reading the wiki I didn't expect the need to setup css.

Of course you do. That's the whole point of theming.

Note that URLs in CSS files are relative *to the location of the CSS  
file*. Thus, for any graphic you want to change, you necessarily need  
to redefine the graphic location in the new theme CSS.

michael


___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the horde mailing list