Travis
Sep 20 2004, 03:01 PM
I was wondering if there is a way to get rid of the breadcrumb links. I know that sounds crazy, but I am working oin some custom category menus, cause I dont like what I have now, and on one of the layouts, the breadcrumbs need to be in a differect place.
Anyone know how to get rid of the?
ArcoJedi
Sep 20 2004, 03:10 PM
If you are creating custom category menus, meaning that your customers will be clicking directly onto sub-menus rather than main categories onto subcategories, then you don't really need to worry about the breadcrumb trail. This trail only shows up in the browser if the customer has linked through these menus to this destination. If they go direct to the subcategory, there will be no trail.
I hope that makes sense and helps you. There is no real way to "turn off" the breadcrumb trail as of yet, but this has been suggested many times and will most likely make it into one of the phases for 4.1 coming here in the next couple of months.
Travis
Sep 20 2004, 03:23 PM
hmm, ok, I tired linking direct into a sub-category, and that didnt work, there was still a breadcrumb. I guess I dont understand. How do you do it exactly where there is no breadcrumb?
Travis
Sep 20 2004, 03:26 PM
ohh, I get it now
Darnit, that wont work. I need to still have categories, just without the breadcrumbs.....so much for that design idea
ArcoJedi
Sep 20 2004, 03:42 PM
The reason that there is a breadcrumb trail on your screen in YOUR browser is because you have already and most likely recently been to the MAIN category. If you posted a link on this Forum direct to the sub-category, I bet anyone who tests it will be able to tell you there is no trail when we test it. My suggestion is to create the custom navigation to the categories the way that you want it to be and it will work.
However, this is not really designed this way as a feature and they may have fixed it or modified it. At that point your only choice will be to make the links in the breadcrumb trails white so they blend with your background. I hope that helps.
Travis
Sep 20 2004, 03:52 PM
So how about this: this is the sub-cat. If you click on it, do you get the breadcrumbs.
Sub Cat
Travis
Sep 20 2004, 04:02 PM
Making it white doesnt work, for the design I had in mind, I needed to be flush with the top of the frame. Oh well
bookmark
Sep 20 2004, 05:52 PM
I get breadcrumbs on that link.
purplekitty
Sep 20 2004, 09:10 PM
| QUOTE (Travis @ Sep 20 2004, 05:03 PM) |
| Making it white doesnt work, for the design I had in mind, I needed to be flush with the top of the frame. Oh well |
You don't want it to be white anyway. It'll look like hidden text to the engines.
undejj
Sep 20 2004, 09:44 PM
I had a script that I used to modify the breadcrumb trail, specifically, it added the product name to the end of the trail. I have to see if I can find the script .. maybe I can modify it to eliminate the crumbs altogether. Are you trying to eliminate the crumbs completely?
crashingflwrgrl
Sep 20 2004, 10:17 PM
| QUOTE |
| specifically, it added the product name to the end of the trail. I have to see if I can find the script |
Erik, post the script...I would love to use it!
undejj
Sep 20 2004, 10:29 PM
Wow, I couldn't even remember that I devised a script to make the crumbs disappear already. Here's the post:
http://forums.monstersmallbusiness.com/ind...indpost&p=16798I'm not sure if that script will work with Mozilla based browsers .. I never tested it on anything but IE. I'm sure I could modify it though, if that is a concern ..
Travis
Sep 21 2004, 07:48 AM
Wow, thanks Eric, that was exactly what I was looking for. As always, you remain the master.
Travis
Sep 21 2004, 07:53 AM
Wow, I jsut used the script, and it did exactly what I wanted it to. It got rid of the default breadcrumbs, but I can still add my own breadcrumbs to the site. Beuatiful, just beuatiful.
undejj
Sep 21 2004, 08:13 AM
Glad I could help ..
undejj
Sep 21 2004, 10:01 PM
| QUOTE (Travis @ Sep 20 2004, 04:02 PM) |
| ...on one of the layouts, the breadcrumbs need to be in a differect place. |
You mentioned in your original post that you would place the breadcrumbs somewhere else. The script that you are using to remove the crumbs could be modified to place the crumbs elsewhere on the page, by saving the crumbs to a variable and then writing the variable to another area of the page.
Just spitballing here ..
crashingflwrgrl
Sep 21 2004, 10:20 PM
| QUOTE |
| I had a script that I used to modify the breadcrumb trail, specifically, it added the product name to the end of the trail. I have to see if I can find the script .. |
Darn!...was hoping you might locate that script.
undejj
Sep 21 2004, 10:47 PM
| QUOTE (crashingflwrgrl @ Sep 21 2004, 11:21 PM) |
Darn!...was hoping you might locate that script.  |
Yeah, here it is:
| CODE |
<script language=javascript> if (document.URL.match(/VIEWPROD/) ) { j=document.getElementsByTagName('font'); for(i=0; i<j.length; i++) { if (j[i].className=='producttext') { productName=j[i].innerText; } } for(i=0; i<j.length; i++) { if (j[i].className=='categories' && j[i].innerHTML.match(/>/) && j[i].innerText.match(/>/) ) { j[i].innerHTML=j[i].innerHTML + productName; } } } </script> |
I haven't figured out if it works with Mozilla or not, and if not, why. But it does work with IE ..
undejj
Sep 21 2004, 10:55 PM
| QUOTE (Wizard @ Sep 21 2004, 11:26 PM) |
| I did notice that when I switched to a mozilla based browser that (as you said) it stopped recognizing the scripts that I had added to my site. If I am not mistaken the scripts are what I would call a search and replace.... but why would mozilla not recognize it? |
IE has a slightly sloppier interpretation of the scripting engine which is more forgiving than Mozilla. I have found out that a lot of my former scripts don't work with Mozilla simply because of my use of parens () instead of brackets []. In some cases, if you change the former to the latter, the script will work.
Other times, it is because I was scripting strictly for IE browsers, and there are some methods that are acceptable in IE, but are not universal. I have recently been developing cross-browser scripts, and sometimes run across old scripts that I need to modify slightly to work with Mozilla. It's not a case of Mozilla being inferior. It's a case of Microsoft's cockiness and my blindness (to other browsers at the time).
Travis
Sep 22 2004, 07:55 AM
The script works good, but I am running into some problems and had to remove it for now. I get a werid tileing effect on the right colum that I have set up to add a border effect to my site. It takes the image that tiles there already and spreades it out to 100% width, breaking out of the set size of the boarder and going across the screen. Very strange.
undejj
Sep 22 2004, 08:11 AM
I would have to see your site and the script in action to ascertain exactly what is going on. Sometimes, these scripts need to be modified on an individual basis.
The particular script that you are talking about matches on the 'greater than' symbol in the crumb trail. You might experience wierd effects depending on whether you have other 'greater than' symbols on the page. This script removes HTML altogether from two particular spots on the page. That could also have adverse effects. Or, who knows, it could be something else unforeseen to me.
For starters, I would try changing the last line from innerHTML to innerText. See if that works:
| CODE |
<script language=javascript> j=document.getElementsByTagName('font'); for(i=0; i<j.length; i++) { if (j[i].innerHTML.match(/> > </) ) j[i].innerText=''; } </script> |
crashingflwrgrl
Sep 22 2004, 09:59 AM
| QUOTE (undejj @ Sep 21 2004, 10:48 PM) |
| QUOTE (crashingflwrgrl @ Sep 21 2004, 11:21 PM) | Darn!...was hoping you might locate that script.  |
Yeah, here it is:
| CODE | <script language=javascript> if (document.URL.match(/VIEWPROD/) ) { j=document.getElementsByTagName('font'); for(i=0; i<j.length; i++) { if (j[i].className=='producttext') { productName=j[i].innerText; } } for(i=0; i<j.length; i++) { if (j[i].className=='categories' && j[i].innerHTML.match(/>/) && j[i].innerText.match(/>/) ) { j[i].innerHTML=j[i].innerHTML + productName; } } } </script> |
I haven't figured out if it works with Mozilla or not, and if not, why. But it does work with IE ..
|
Thanks Erik! You're awesome.

Ummm...now where do I place it?
undejj
Sep 22 2004, 11:05 AM
| QUOTE (crashingflwrgrl @ Sep 22 2004, 11:00 AM) |
Thanks Erik! You're awesome. Ummm...now where do I place it? |
Bottom of Page, silly!
crashingflwrgrl
Sep 22 2004, 11:06 AM
lol....I knew that.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.