[Koha] Opac Header Image

Eric Phetteplace ephetteplace at cca.edu
Wed Sep 6 05:10:02 NZST 2017


Hi Ashok,

Without actually looking at your catalog site, it's tough to tell. It's
helpful to send along a link, if possible. My guess is that the image URL
on your home page is correct but it breaks when you go to a search. That
blog post is very flawed in that it recommends a *relative* URL (one which
doesn't begin with a "/"):

<img src="header.jpg" style="width:100%;height:100%;">

references the path /header.jpg in the root of your htdocs folder on your
home page, but references a different /cgi-bin/koha/header.jpg when you're
on the search page (/cgi-bin/koha/opac-search.pl). You need to make that
URL absolute by prepending a forward slash:

<img src="*/*header.jpg" style="width:100%;height:100%;">

That should fix your issue.

Best,

ERIC PHETTEPLACE

Systems Librarian


libraries.cca.edu | vault.cca.edu | 510.594.3660

5212 Broadway, Oakland, CA 94618

1111 8th St., San Francisco, CA 94107

Preferred Pronoun(s): he/him

:(){ :|: & };:

On Mon, Sep 4, 2017 at 3:05 AM, Ashok Francis <ashokfrancis.tgs at gmail.com>
wrote:

> Dear All,
>
> I have added header image in opac. It is showing in homepage only. But when
> I search catalogue, the header image is not showing. Can anyone please help
> me what I have to do?
>
> Here is the link that I followed
> http://kohageek.blogspot.in/search/label/banner
> <http://kohageek.blogspot.in/search/label/banner>
>
> Kind Regards,
> W. Ashok Francis,
> Librarian, New Delhi.
> _______________________________________________
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>


More information about the Koha mailing list