How to Link to Homepage in Header

FastZ
FastZ's picture

Joined: 2005-05-09
Posts: 26
Posted: Tue, 2005-05-17 01:31

I was wondering if anyone could tell me how I can get a link back to my homepage in the header of every page of my gallery. Right now, all I have is one in the header of the main gallery page, but none in the actual albums. Could you tell me which file to mess with? I messed with the gallery.header.default one for the main gallery page. Any help is greatly appreciated. Thanks in advance.

Matt

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2005-05-17 16:30

[Moved to customizations]

 
Soldierette!!
Soldierette!!'s picture

Joined: 2004-06-04
Posts: 44
Posted: Thu, 2005-05-19 03:23

Moved but not answered. I could use the info on this question as well, if anyone has the info?

Thanks!

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Thu, 2005-05-19 03:27

Use wrapper.header and wrapper.footer, they do the entire site. This is a pretty common question that has been answered frequently, see if you can find one of those threads :)

 
JBSRace1

Joined: 2004-05-04
Posts: 14
Posted: Thu, 2005-05-19 12:28
 
FastZ
FastZ's picture

Joined: 2005-05-09
Posts: 26
Posted: Fri, 2005-05-20 03:27

JBS, I did that to get the link on my main gallery page, but it doesnt help out with the rest of the gallery. What I am asking is how do I get a link in the header linking back to my home site on EVERY gallery page. I took a look at the wrapper.header and wrapper.footer files and they aint nothing but a bunch of jibberish that I cant make out. Any more ideas?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Fri, 2005-05-20 05:19
fryfrog wrote:
Use wrapper.header and wrapper.footer, they do the entire site. This is a pretty common question that has been answered frequently, see if you can find one of those threads :)

These are the only files that are included in EVERY gallery page. Learn them and enjoy them!

 
JBSRace1

Joined: 2004-05-04
Posts: 14
Posted: Sat, 2005-05-21 01:53

FastZ
Try this. I just tried it with 3 diff skins and it worked perfect for me.

Open the directory for what ever skin you are using.
creat a folder named tpl
Then in that folder creat a document named header.tpl
add this to the header.tpl

<DIV align="Left"><TABLE>
<TR>
<TH>
<a href="http://jbsdragracing.com/">Back to jbsdragracing.com</a>
</TH>
</TR>
</TABLE>
</DIV>

Change the URL to the address to your home page and change the Back to jbsdragracing.com to what you want to say.
Save and close and see how it looks.

 
FastZ
FastZ's picture

Joined: 2005-05-09
Posts: 26
Posted: Sun, 2005-05-22 02:12

Thanks JBS. That worked wonderfully. Now I just have to mess around with it a bit to make it look exactly like I want. Again...thanks.

 
LadyDee

Joined: 2005-05-24
Posts: 3
Posted: Tue, 2005-05-24 23:27

I followed the intructions below exactly to add a link back to my homepage however it doesn't work for me. Is there a bug with this working for gallery v1.4.4?

JBSRace1 wrote:
FastZ
Try this. I just tried it with 3 diff skins and it worked perfect for me.

Open the directory for what ever skin you are using.
creat a folder named tpl
Then in that folder creat a document named header.tpl
add this to the header.tpl

<DIV align="Left"><TABLE>
<TR>
<TH>
<a href="http://jbsdragracing.com/">Back to jbsdragracing.com</a>
</TH>
</TR>
</TABLE>
</DIV>

Change the URL to the address to your home page and change the Back to jbsdragracing.com to what you want to say.
Save and close and see how it looks.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2005-05-24 23:30

Reading files named *.tpl is a 1.5 feature. Either do this the 1.4.x way or upgrade to 1.5.

 
JBSRace1

Joined: 2004-05-04
Posts: 14
Posted: Wed, 2005-05-25 03:01

fryfrog
Could they add includeTemplate('header.tpl'); to the wrapper.header.default in 1.4 and it work?

I did not really play with 1.4 much

I like the ability to use the Header.tpl it gives you allot of options

JB.....The Gallery team get a A+ on 1.5 from me :D

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-05-25 04:04

I spose so, but I couldn't tell you for sure.

 
LadyDee

Joined: 2005-05-24
Posts: 3
Posted: Thu, 2005-05-26 22:22

I'd rather not upgrade to 1.5 if I dont have to since I haven't had any other problems. How do I add the link back to the homepage using the 1.4.x way? I apprepricate any suggestions.

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Thu, 2005-05-26 22:28

Read the tut in my sig - they are still written for pre-1.5 pre-tpl file versions of G1.

Gaile

 
netnut

Joined: 2005-03-24
Posts: 5
Posted: Mon, 2005-05-30 11:53

How to for Albums only, not gallery wide?
TIA mike

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25953
Posted: Mon, 2005-05-30 15:45

edit album.header.default and save as album.header

 
TonyB

Joined: 2005-06-04
Posts: 1
Posted: Sat, 2005-06-04 02:36
LadyDee wrote:
I followed the intructions below exactly to add a link back to my homepage however it doesn't work for me. Is there a bug with this working for gallery v1.4.4?

JBSRace1 wrote:
FastZ
Try this. I just tried it with 3 diff skins and it worked perfect for me.

Open the directory for what ever skin you are using.
creat a folder named tpl
Then in that folder creat a document named header.tpl
add this to the header.tpl

<DIV align="Left"><TABLE>
<TR>
<TH>
<a href="http://jbsdragracing.com/">Back to jbsdragracing.com</a>
</TH>
</TR>
</TABLE>
</DIV>

Change the URL to the address to your home page and change the Back to jbsdragracing.com to what you want to say.
Save and close and see how it looks.

Yea! that worked for me, thanks a lot for the help, JBSRace1. Now if someone could tell what to add to that code that would make the text change color to white when a mouse is over, I would be extremely gratfull. I am a new at this and I do realize that this common knowledge but for me this stuff is very new. Thanks again.

 
JBSRace1

Joined: 2004-05-04
Posts: 14
Posted: Sat, 2005-06-04 16:27

I belive all you have to do is change the color for (.title A:hover) in the "screen.css" for the skin that you are using to FFFFFF