PDA

View Full Version : Is it possible to add to the breadcrumb?


Melissaphoto
May-09-2008, 02:25 PM
Join Date: Feb 2008
Posts: 17


Me again! I'm re-posting an old question. Thanks for all your help.

Hello,

Sorry for the re-post, but I would love some help with this.

With richW's help, I was able to change the breadbrumb to say "Home" at the beginning instead of my name. I like this better.

Now I'm wondering if I can add something (a link to the "Galleries" page) into the breadcrumb.

Instead of: Home --> Travel --> New York
I'd l ike it to say: Home --> Galleries -- > Travel --> New York

Is this possible? If yes, how?

Thanks for your time and your help. I am so glad I decided to use smugMug.

Melissa
http://www.melissaphoto.com (http://www.melissaphoto.com/)

Barb
May-09-2008, 03:46 PM
Join Date: Feb 2008
Posts: 17


Me again! I'm re-posting an old question. Thanks for all your help.

Hello,

Sorry for the re-post, but I would love some help with this.

With richW's help, I was able to change the breadbrumb to say "Home" at the beginning instead of my name. I like this better.

Now I'm wondering if I can add something (a link to the "Galleries" page) into the breadcrumb.

Instead of: Home --> Travel --> New York
I'd l ike it to say: Home --> Galleries -- > Travel --> New York

Is this possible? If yes, how?

Thanks for your time and your help. I am so glad I decided to use smugMug.

Melissa
http://www.melissaphoto.com (http://www.melissaphoto.com/)

Hi Melissa,

I tried something with the hack you are using for your breadcrumb on your site. Seemed to work. Check it out!

Melissaphoto
May-10-2008, 09:49 PM
Hi Melissa,

I tried something with the hack you are using for your breadcrumb on your site. Seemed to work. Check it out!

-------

Hi Barb! Sorry, I've been away from my computer and just checked this out. It is exactly what I wanted. Thanks so much for your help.

Just so I can try to follow, I assume this is the text you added (from the footer)?

var objElement = document.getElementById("breadcrumb")
if (objElement != null) {
var str = new String(objElement.innerHTML);
str = str.replace('>Melissa<', '>Home > <a href="/galleries">Galleries</a><');
objElement.innerHTML = str;
}

Now how would I make sure the text color (hover and regular) is the same as all the other words in the breadcrumb? All the other words are #7d785a.

THANK YOU!!

richW
May-10-2008, 10:11 PM
-------

Hi Barb! Sorry, I've been away from my computer and just checked this out. It is exactly what I wanted. Thanks so much for your help.

Just so I can try to follow, I assume this is the text you added (from the footer)?

var objElement = document.getElementById("breadcrumb")
if (objElement != null) {
var str = new String(objElement.innerHTML);
str = str.replace('>Melissa Agocs<', '>Home > <a href="/galleries">Galleries</a><');
objElement.innerHTML = str;
}

Now how would I make sure the text color (hover and regular) is the same as all the other words in the breadcrumb? All the other words are #7d785a.

THANK YOU!!Give this a try:

#breadCrumbTrail a {color: #7D785A;}

edit: might be better:
#breadcrumb a {color: #7D785A;}

The code Barb worked on is in the footer javascript section..

Melissaphoto
May-11-2008, 07:26 AM
Give this a try:

#breadCrumbTrail a {color: #7D785A;}

edit: might be better:
#breadcrumb a {color: #7D785A;}

The code Barb worked on is in the footer javascript section..

---------

Yep!! Perfect, thanks!