[Koha] Replacing existing images in Koha with our own

library at ssst.edu.ba library at ssst.edu.ba
Sat Mar 4 06:07:17 NZDT 2023


Thank you, David, I had just tried this literally a few minutes ago! However I got several errors (expecting an RBRACE) that I didn't know how to fix. I ended up right-click > inspect page source, and using this snippet of code: 

#logo {
    background: transparent url(https://i.imgur.com/Cbn0f69.png) no-repeat scroll 0;
    float: left!important;
    padding: 0;
}

Unlike with the login image replacement, imgur did not add a pale overlay on top of the white Koha logo (I changed the background of the OPAC to a gradient from blue to red, which are our university colors so the green logo was clashing). I will continue to study the instructions over the weekend - I should have gone home two hours ago! 

Best regards

Aida Đikić


-----Original Message-----
From: David Liddle <david at liddles.net> 
Sent: Friday, March 3, 2023 5:59 PM
To: library at ssst.edu.ba
Cc: koha at lists.katipo.co.nz
Subject: Re: [Koha] Replacing existing images in Koha with our own

Aida, there is another method that can be used, which is similar to what is described here:
https://wiki.koha-community.org/wiki/HTML_%26_CSS_Library#Change_logo_and_background_color_of_masthead.
You would be using the system preference IntranetUserCss perhaps together with StaffLoginInstructions to achieve your end result.

That's the method that our system uses. It doesn't change the fact that permissions and links need to be correct, and it doesn't change the possibility that files placed in the htdocs directory may be overwritten. One advantage that I can think of over the method you found is this: by defining the logo in IntranetUserCSS, the field StaffLoginInstructions is left free for instructions and messages only. Separating the two could reduce confusion and mistakes.

David


On Fri, Mar 3, 2023 at 4:24 PM library at ssst.edu.ba <library at ssst.edu.ba> wrote:
>
> Hi all,
>
> Another thing I don't understand is how to replace images (logos in 
> the OPAC and the login etc.) with our own images. I have tried 
> following instructions on 
> https://www.vijenderkumar.com/2022/05/beautify-koha-staff-login-page.h
> tml
>
> >>Create an image for the logo or copy it from the institute's website. Save it in the home folder with the name 'logo.jpg'
> >>Open the terminal and run the following command to paste the logo 
> >>image in htdocs folder from the home folder sudo cp logo.jpg 
> >>/usr/share/koha/opac/htdocs Now Open koha Staff Interface koha 
> >>administration➞ Global System Preferences➞Staff 
> >>Client➞StaffLoginInstructions Add the following html scripts in the StaffLoginInstructions...
>
> How do I even save something to the home folder in the terminal?? When I tried using it to copy the image to /usr/share/koha/opac/htdocs nothing happened, so I asked one of our IT staff to install Filezilla for me so that I can at least move the files to these locations. I proceeded with the instructions and pasted the code to the StaffLoginInstructions, changed the IP: http://127.0.1.1 with our Koha OPAC IP but there's just a broken image where the logo is supposed to be. How in the world are others making these changes?
>
> Best regards
>
> Aida Đikić
>
>
> -----Original Message-----
> From: Koha <koha-bounces at lists.katipo.co.nz> On Behalf Of 
> koha-request at lists.katipo.co.nz
> Sent: Friday, March 3, 2023 12:00 AM
> To: koha at lists.katipo.co.nz
> Subject: Koha Digest, Vol 209, Issue 3
>
> Send Koha mailing list submissions to
>         koha at lists.katipo.co.nz
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.katipo.co.nz/mailman/listinfo/koha
> or, via email, send a message with subject or body 'help' to
>         koha-request at lists.katipo.co.nz
>
> You can reach the person managing the list at
>         koha-owner at lists.katipo.co.nz
>
> When replying, please edit your Subject line so it is more specific than "Re: Contents of Koha digest..."
> _______________________________________________
>
> Koha mailing list  http://koha-community.org Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha


More information about the Koha mailing list