[Koha] Question on OPACUserCSS

Thomas Klausner domm at plix.at
Fri Oct 28 11:47:04 NZDT 2022


Hi!

On Thu, Oct 27, 2022 at 02:25:48PM +0000, Bruns, Anke wrote:
 
> 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);

seems like you're using a relative path to the 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

and here you are using different base paths, so maybe the image is just 
not found in one case or the other? Have you checked the Network Tools 
in your Browser? There you should see if the background image cannot be 
loaded (404)

Greetings,
domm

-- 
#!/usr/bin/perl                             https://domm.plix.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}


More information about the Koha mailing list