Personal tools

Talk:Gallery2:How to Add Custom Banner or Remove Gallery Logo

From Gallery Codex

What is the solution in a multisite installation?

multisite info

added. --Mindless 08:46, 24 March 2007 (PDT)

multisite solution not working

the default code

<img src="{g->url href="images/galleryLogo_sm.gif"}" width="107" height="48" alt=""/>

looks for the file in images/ sub-directory in the "core" files directory.

How does the solution code,

<img src="{g->url href="sitelogo.jpg" forceDirect=true}" alt=""/>

know to look in the multisite directory as opposed to the "core" directory.

I have added the code, but it does not find the sitelogo.jpg picture in the multisite directory.

Changing the size of the logo

I found the following useful in the matrix theme (Gallery2) it allows you to create a logo of any size:

In the theme.css add the following to the bottom:

 #gsHeader a img {
 display:block;
 width:600px;
 height: 70px;

}

obviously the width and height can be set to whatever is required by your altered logo (galleryLogo_sm.gif) - to prevent distortion they should match the dimensions of your new logo.

advertisements