Hi Bruns,

The CSS you added should work on all OPAC pages and does for me. I am
testing with the following:

body {
  background-image: url(
https://github.com/bywatersolutions/web-assets/blob/master/sites/Koha-logo.png?raw=true
);
  background-repeat: no-repeat;
  background-size: cover;
}


What Koha version are you using?
Have you made sure there is no subsequent CSS, either in OPACUserCSS or
coming from elsewhere, that could be overriding this?

On Thu, Oct 27, 2022 at 8:26 AM Bruns, Anke <anke.br...@gwdg.de> wrote:

> Hello,
>
> we are struggling with a background image for the OPAC pages.
>
> The description of the parameter OPACUserCSS says " Include the following
> CSS on all pages in the OPAC". However, the style declaration
>
> body {
>   background-image: url(path/to/our/image.jpg);
>   background-repeat: no-repeat;
>   background-size: cover
> }
>
> only results in the image being displayed on the OPAC start page, not on
> all
> the others. What's more, clicking on the "Start" link to return to the
> start
> page also shows the page without the background image.
>
> So, obviously, it makes a difference if the start page is reached via
>
> https://our.opac.url or
> https://our.opac.url/cgi-bin/koha/opac-main.pl
> (of course, these are only symbolic URLs that won't lead anywhere)
>
> How can we make the body style declaration visible on all OPAC pages?
>
> Thanks!
>
> Regards,
> Anke
>
>
>
> --
> Anke Bruns M.A. (LIS)
> Arbeitsgruppe "Anwendungs- und Informationssysteme"
> E-Mail: anke.br...@gwdg.de
> ---------------------------------------
> Gesellschaft für wissenschaftliche Datenverarbeitung mbH Göttingen (GWDG)
> Burckhardtweg 4, 37077 Göttingen, URL: https://gwdg.de
>
> Support: Tel.: +49 551 39-30000, URL: https://gwdg.de/support
> Sekretariat: Tel.: +49 551 39-30001, E-Mail: g...@gwdg.de
>
> Geschäftsführer: Prof. Dr. Ramin Yahyapour
> Aufsichtsratsvorsitzender: Prof. Dr. Norbert Lossau
> Sitz der Gesellschaft: Göttingen
> Registergericht: Göttingen, Handelsregister-Nr. B 598
> ---------------------------------------
> Zertifiziert nach ISO 9001
> ---------------------------------------
>
> _______________________________________________
>
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>


-- 
Lucas Gass
Web Developer
_______________________________________________

Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to