[Koha] Question on OPACUserCSS

Bruns, Anke Anke.Bruns at gwdg.de
Fri Oct 28 03:53:45 NZDT 2022


Hi Lucas,

thanks for the quick answer!

We are on Koha 22.05, and as far as I'm aware there is no subsequent css, at least none defined by us in OPACUserCSS (or elsewhere).

Regards,
Anke




> -----Ursprüngliche Nachricht-----
> Von: Lucas Gass <lucas at bywatersolutions.com>
> Gesendet: Donnerstag, 27. Oktober 2022 16:45
> An: Bruns, Anke <Anke.Bruns at gwdg.de>
> Cc: Koha <koha at lists.katipo.co.nz>
> Betreff: Re: [Koha] Question on OPACUserCSS
> 
> 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.Bruns at gwdg.de
> <mailto:Anke.Bruns at 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.bruns at gwdg.de <mailto:anke.bruns at 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: gwdg at gwdg.de
> <mailto:gwdg at 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 at lists.katipo.co.nz <mailto:Koha at lists.katipo.co.nz>
> 	Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
> 
> 
> 
> 
> --
> 
> Lucas Gass
> Web Developer
>  <https://ci3.googleusercontent.com/mail-
> sig/AIorK4wLTGMfXvr_9IEGIssemQRuiAxgVIEXZ-
> npLP_qbxtDNVEu2vvp8TxQeS9Q9pUbuORo-u5iQ_w>



More information about the Koha mailing list