PDA

View Full Version : Different headers, same page???


trossnagel
Jun-08-2006, 12:26 PM
Greetings...

Currently, my Smugmug page is predominately family pics, but I have grown to enjoy the layout of Smugmug so much that I would like to link from my business page to a sepearte Smugmug page...

HOWEVER - I currently have a "family" style header.

Can I add a seperate "business" related header to a seperate page?

Thanks!
Todd

Andy
Jun-08-2006, 12:28 PM
My FAQ, Sticky in this forum
http://www.dgrin.com/showthread.php?t=26043

#4 on the FAQ list
http://www.dgrin.com/showthread.php?t=22220

trossnagel
Jun-08-2006, 04:44 PM
I have followed your instructions with great success, up until this project.

Ughhh...

http://rossnagel.smugmug.com



My FAQ, Sticky in this forum
http://www.dgrin.com/showthread.php?t=26043

#4 on the FAQ list
http://www.dgrin.com/showthread.php?t=22220

Stustaff
Jun-09-2006, 06:18 AM
Hmm im getting stuck too I have set my main header for my home page and tried to then set another for my "Family" category but its not showing the different header in the family category?

Site = http://stuarthill.smugmug.com

And heres what I did


CSS=
* Header */
#my_header {
display: none;
}

#my_header img {
width:750;
height:100;
border:0;
}
.homepage #my_header {
display: block;
margin-left:auto;
margin-right:auto;
background: url(http://stuarthill.smugmug.com/photos/73872466-O.jpg);
height: 100px;
width: 750px;
}
/* Header for Family category */
#my_familyheader {
display: none;
}

#my_familyheader img {
width:750;
height:100;
border:0;
}
.Family #my_familyheader {
display: block;
margin-left:auto;
margin-right:auto;
background: url(http://stuarthill.smugmug.com/photos/73868488-O.jpg);
height: 100px;
width: 750px;
}

Header =
<div id="my_header">
<a href="<A href="http://stuarthill.smugmug.com/"><img">http://stuarthill.smugmug.com/"><img src="http://stuarthill.smugmug.com/photos/73872466-O.jpg" /></a>
</div>
<div id="my_familyheader">
<a href="<A href="http://web.mac.com/stuart.hill/iWeb/Site/Home.html"><img">http://web.mac.com/stuart.hill/iWeb/Site/Home.html"><img src="http://stuarthill.smugmug.com/photos/73868488-O.jpg" /></a>
</div>

Thanks for any suggestions/help

Andy
Jun-09-2006, 06:49 AM
Hmm im getting stuck too I have set my main header for my home page and tried to then set another for my "Family" category but its not showing the different header in the family category?

d00plicate p0sting. Answered in the other thread.

Andy
Jun-09-2006, 06:54 AM
I have followed your instructions with great success, up until this project.

Ughhh...

http://rossnagel.smugmug.com
Hey Ross,

So, specifically what's the trouble? Copy the relavent CSS here so folks can help you, ok?

:D

trossnagel
Jun-09-2006, 10:53 AM
Hey Ross,

So, specifically what's the trouble? Copy the relavent CSS here so folks can help you, ok?

:D

Andy - first, my apologies for the double post...

Second - here's the CSS code below. I am trying to keep the header for my current page: http://rossnagel.smugmug.com for all pages, except for "My Photography", which I would like to have the following header: http://rossnagel.smugmug.com/photos/74284864-O.jpg and it's 930x270

Heres the CSS:

#my_header {display: none;}

#my_header img {
width:916;
height:260;
border:0;
}

.homepage #my_header {
display: block;
margin-left:auto;
margin-right:auto;
background: url(http://rossnagel.smugmug.com/photos/72059552-O.jpg);
height:916px;
width: 260px;
}

http://rossnagel.smugmug.com/gallery/159413 #my_header {display: block; margin-left:auto; margin-right:auto; background: url(http://rossnagel.smugmug.com/photos/74284864-O.jpg); height: 270px; width: 930px;}

ivar
Jun-09-2006, 01:32 PM
Well, you cannot put an image in a div that doesn't exist :wink


First, change this
<div align="center">
<img src="http://rossnagel.smugmug.com/photos/72059552-O.jpg" width="916" height="260"
border="0" hspace="0" vspace="0" alt="Rossnagel Photo Album">to this<*div id="my_header"><*/div>(without the stars)

then use this for CSS:
#my_header img {
border:0;
}

.homepage #my_header {
width:916;
height:260;
display: block;
margin-left:auto;
margin-right:auto;
background: url(http://rossnagel.smugmug.com/photos/72059552-O.jpg);
}

.gallery_159413 #my_header {
background: url(http://rossnagel.smugmug.com/photos/74284864-O.jpg);
height: 270px;
width: 930px;
}That should do it.

trossnagel
Jun-09-2006, 04:27 PM
I made the change and the new banner for my "business" page was changed, but in the process, my old banner (the one for all the other pages) went missing...but JUST SLIGHTLY!!! I think I am almost there...

:scratch

NEW CSS:

#my_header img {
border:0;
}
#my_header {
width:916;
height:260;
display: block;
margin-left:auto;
margin-right:auto;
background: url(http://rossnagel.smugmug.com/photos/72059552-O.jpg);
}
.gallery_159413 #my_header {
background: url(http://rossnagel.smugmug.com/photos/74284864-O.jpg);
height: 270px;
width: 930px;
}


HEADER CODE:

<div id="my_header">
<a href="<A href="http://rossnagel.smugmug.com/photos/72059552-O.jpg"><img">http://rossnagel.smugmug.com/photos/72059552-O.jpg"><img src="/img/spacer.gif" /></a>
</div>

The header is barely visible....

It completely disapeears when I use the code you provided:

<*div id="my_header"><*/div>

Stustaff
Jun-09-2006, 11:47 PM
Hi here is mine that works great feel free to play spot the difference and maybe we can work out the prob with yours.

Mine is set to put one banner on my homepage and into my "Photography" Category and then another banner to show in my "Family" category
The stuff in red is what you can change

CSS =

/* REMOVES HEADER FROM ALL PAGES */
#my_header {
display: none;
margin: 0px auto;
}

/* SHOWS BANNER ON HOMEPAGE AND OTHER SECTION */
.homepage #my_header,
.category_Photography #my_header {
display: block;
background: url(http://stuarthill.smugmug.com/photos/73872466-O.jpg);
height: 100px;
width: 750px;
}

/* SHOWS BANNER ON FAMILY CATEGORY */
.category_Family #my_header {
display: block;
background: url(http://stuarthill.smugmug.com/photos/73868488-O.jpg);
height: 100px;
width: 750px;
}

Header text =

<div id="my_header">
<img src="/img/spacer.gif"/></a>
</div>

I think that is pretty straight forward for you to follow now?

ivar
Jun-10-2006, 04:02 AM
I made the change and the new banner for my "business" page was changed, but in the process, my old banner (the one for all the other pages) went missing...but JUST SLIGHTLY!!! I think I am almost there...

:scratch

NEW CSS:

#my_header img {
border:0;
}
#my_header {
width:916;
height:260;
display: block;
margin-left:auto;
margin-right:auto;
background: url(http://rossnagel.smugmug.com/photos/72059552-O.jpg);
}
.gallery_159413 #my_header {
background: url(http://rossnagel.smugmug.com/photos/74284864-O.jpg);
height: 270px;
width: 930px;
}


HEADER CODE:

<div id="my_header">
<a href="<A href="http://rossnagel.smugmug.com/photos/72059552-O.jpg"><img">http://rossnagel.smugmug.com/photos/72059552-O.jpg"><img src="/img/spacer.gif" /></a>
</div>

The header is barely visible....

It completely disapeears when I use the code you provided:

<*div id="my_header"><*/div>
Don't change it all to Stustaff's code please, it's good code, but not for what you want. You are there, the only thing that is missing are two 'px' statements.

#my_header img {
border:0;
}

.homepage #my_header {
width:916px;
height:260px;
display: block;
margin-left:auto;
margin-right:auto;
background: url(http://rossnagel.smugmug.com/photos/72059552-O.jpg);
}

.gallery_159413 #my_header {
background: url(http://rossnagel.smugmug.com/photos/74284864-O.jpg);
height: 270px;
width: 930px;
}just use this code, sorry, i forgot to type that in my reply earlier. It works too, i just checked it :D

trossnagel
Jun-10-2006, 02:30 PM
A million thanks! I finally got it...

Looks like when I hit the custom button on "customize this Gallery", everything disappears, but I am happy...

A million thanks to everyone on this board...with special attention to Ivar and Andy!!!:clap :clap :clap

trossnagel
Jun-14-2006, 08:33 AM
Ooops....I forgot - one more question.

When I click on a specific gallery, that doesn't have a GALLERY NUMBER i.e.: http://rossnagel.smugmug.com/Todd%20Rossnagel%20Photography

How do make the new header appear here?:scratch

Thanks!

Andy
Jun-14-2006, 08:39 AM
Ooops....I forgot - one more question.

When I click on a specific gallery, that doesn't have a GALLERY NUMBER i.e.: http://rossnagel.smugmug.com/Todd%20Rossnagel%20Photography

How do make the new header appear here?:scratch

Thanks!
That's not a gallery, but a category:

http://rossnagel.smugmug.com/Todd%20Rossnagel%20Photography

.category_Todd_Rossnagel_Photography