Login page BG color - colorpack not linked

athertop

Joined: 2003-08-06
Posts: 38
Posted: Sat, 2012-01-14 17:33

I have created my own amended colorpack and have this assigned to my gallery 2 throughout. On all galley pages I can see the code:
<link href="modules/colorpack/packs/PJA/color.css" type="text/css" rel="stylesheet">
in the page head, but thios is omitted when on the login page - reverting to plain white background.

I am trying to figure out what inserts the css links into the theme.tpl. There is a section at the top of theme.tpl:

{* Let Gallery print out anything it wants to put into the <head> element *}
{g->head}

And it appears that the variable g->head puts those css links in, but I can't figure where that variable comes from.

Anyone any idea how to link my colorpack to the login page?

Thanks, Paul

using Gallery v2.3 on LAMP

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2012-01-14 18:12

The best way with the current implementation is to add that line into theme.tpl below the "g-head" line and before any line containing "</head>".

This will make it appear in all G2 pages.

You will need to remove it from other locations you might have added it to.

--
dakanji.com

 
athertop

Joined: 2003-08-06
Posts: 38
Posted: Sat, 2012-01-14 20:08

Thanks for the work-around. I will put that in just now until I find something more suitable (as this will have the same link line appear twice for most pages).

These forums are awesome! I love the fact that help is only a few minutes away.

Thanks again, Paul

 
eliz82

Joined: 2009-11-06
Posts: 71
Posted: Thu, 2012-02-16 00:19
athertop wrote:
Anyone any idea how to link my colorpack to the login page?

edit this file
modules\core\templates\UserLogin.tpl
or copy in a "local" directory

link your css code in that file using {g->head}