Simplified headings and cookie crumbs?

wanderingeyewanderingeye Registered Users Posts: 43 Big grins
edited May 18, 2005 in SmugMug Support
Something I'd really like to be able to do is to simplify the headings on the home page (and top level cookie crumbs on gallery pages) so that they read just "Home" and "Galleries" instead of " 'nickname's' Home" and " 'nickname's' Galleries".

Is there a simple way to do this? Something with CSS perhaps? Looking around I don't see many sites with this change so maybe it's difficult or not allowed? I noticed that on this site http://www.aliceheimsoth.com/ there is no Home heading at all, but maybe this is because she has done her bio in a different way?

BTW, I have a Featured Gallery with pricing information and I would also like it to have no "Featured Gallery" heading.

TIA
David Cothran (Wandering Eye)
http://www.wandering-eye.com

"the days run away like wild horses over the hills"
Bukowski

Comments

  • winnjewettwinnjewett Registered Users Posts: 329 Major grins
    edited May 13, 2005
    Something I'd really like to be able to do is to simplify the headings on the home page (and top level cookie crumbs on gallery pages) so that they read just "Home" and "Galleries" instead of " 'nickname's' Home" and " 'nickname's' Galleries".

    Is there a simple way to do this? Something with CSS perhaps? Looking around I don't see many sites with this change so maybe it's difficult or not allowed? I noticed that on this site http://www.aliceheimsoth.com/ there is no Home heading at all, but maybe this is because she has done her bio in a different way?

    BTW, I have a Featured Gallery with pricing information and I would also like it to have no "Featured Gallery" heading.

    TIA
    I have changed both the wording and the link for the home portion of the breadcrumb on my site. I have also changed the wording of the cart text, and taken the batch add to cart out entirely. The best way to get the code is to view the source code on any of my pages. If you would like more detailed instructions, feel free to ask.

    Good Luck,
    -Winn
  • wanderingeyewanderingeye Registered Users Posts: 43 Big grins
    edited May 14, 2005
    Winn,

    Thanks a lot for the reply. I looked over the source code for one of your gallery pages and compared it to mine, but unfortunately it seems that the code you've used is a little (OK, way) beyond my (extremely meager) abilities.

    I did manage to locate this section:
    which seems to describe the headings and cookie crumbs (?); on my page it looks like:


    but I must be missing something - to me it looks like your code still gives the top level crumb as "brilliantphoton's home" though I can see on your page that it reads as just "Home".

    Another thing I don't understand is how do you actually make changes of this kind on the Smugmug cobranding page? Do you just enter the new code in the body section? Does that replace existing code?

    I know this is a lot to ask from a web ignoramus like myself , but if you are willing, I would really appreciate some further help.

    Thanks a lot!
    brilliantphoton's home > Portfolio > Landscape

    Wandering-eye's home > Nature > Falkland Islands
    gallery pages: 1  2  3  >  
    David Cothran (Wandering Eye)
    http://www.wandering-eye.com

    "the days run away like wild horses over the hills"
    Bukowski
  • winnjewettwinnjewett Registered Users Posts: 329 Major grins
    edited May 14, 2005
    Winn,

    Thanks a lot for the reply. I looked over the source code for one of your gallery pages and compared it to mine, but unfortunately it seems that the code you've used is a little (OK, way) beyond my (extremely meager) abilities.

    I did manage to locate this section:
    ...code...
    but I must be missing something - to me it looks like your code still gives the top level crumb as "brilliantphoton's home" though I can see on your page that it reads as just "Home".

    Another thing I don't understand is how do you actually make changes of this kind on the Smugmug cobranding page? Do you just enter the new code in the body section? Does that replace existing code?

    I know this is a lot to ask from a web ignoramus like myself <img src="https://us.v-cdn.net/6029383/emoji/ne_nau.gif&quot; border="0" alt="" > , but if you are willing, I would really appreciate some further help.

    Thanks a lot!
    I do appologize for not being clearer in my last post. Although looking at that section of code was not a waste of time since you now know what we are working with, smugmug gives us no direct way to modify that section of code. So, in comes javascript to help us out. If you look at the very top of my code, you will see the following:
                  function smHacks(){
    		if (window.navigator.appName == "Microsoft Internet Explorer"){
    			text1 = 1;
    			img2 = 2;
    			text2 = 3;
    			text3 = 5;
    		}
    		else{
    			text1 = 3;
    			img2 = 5;
    			text2 = 7;
    			text3 = 11;
    		}
    		if(document.getElementById('cartadd') != null){
    			document.getElementById('cartadd').parentNode.parentNode.childNodes[text1].childNodes[0].innerHTML='Order Prints & Gifts';
    			document.getElementById('cartadd').parentNode.parentNode.childNodes[text2].innerHTML='';;
    			document.getElementById('cartadd').parentNode.parentNode.childNodes[img2].innerHTML='';
    			document.getElementById('cartadd').parentNode.parentNode.childNodes[text3].childNodes[0].innerHTML='View Orders';
    			document.getElementById('cartadd').parentNode.parentNode.childNodes[text1].style.textAlign='left';
    			document.getElementById('cartadd').parentNode.parentNode.childNodes[text3].style.textAlign='left';
    		}
    		var atags = document.getElementsByTagName("a");
    		for(var i = 0; i < atags.length; i++) {
    			var tag = atags[i];
    			if (tag.href == "http://" + location.host + "/"){
    				//tag.parentNode.parentNode.style.visibility = "hidden";
    				tag.innerHTML = "Home";
    				tag.href = "http://brilliantphoton.com/"
    			}
    		}
    
    	}
    
    If you put this code into the javascript section of the control panel, and put the following into the body section:
    <body onload="smHacks();>

    You will have all the changes that I made. You can then tweak the code to suit your needs. I think this should give you a starting place.
    Good Luck,
    Winn
  • winnjewettwinnjewett Registered Users Posts: 329 Major grins
    edited May 14, 2005
    correction: the body tag should read:


    I don't want to modify the above post because bugs in the forum software will break the code portion of the text.

    -winn
  • savannahgasavannahga Registered Users Posts: 225 Major grins
    edited May 14, 2005
    Mine are still there, I just changed the color of the fonts so u can't see them.
    http://www.savannahga.smugmug.com
  • wanderingeyewanderingeye Registered Users Posts: 43 Big grins
    edited May 18, 2005
    Winn and Savannah,

    Thanks very much for your help and suggestions - please excuse me for taking a while to get back to you - I am overseas again, working, and don't have very much access to the web.

    The transparent thing won't work for me because I have a patterned background.

    And Winn, I tried your code but I must have been doing something quite wrong because all it did was change the color of my links and picture borders (to a bright royal blue and olive green?!), my headings and shopping cart stayed just the same. I tried a few variations of the code but always the same effect.

    Anyway, I can't proceed until I get home again in mid June. Would it be OK if I contacted you (Winn) by PM then to ask a few more questions?

    Thanks again for your generous help
    David Cothran (Wandering Eye)
    http://www.wandering-eye.com

    "the days run away like wild horses over the hills"
    Bukowski
  • winnjewettwinnjewett Registered Users Posts: 329 Major grins
    edited May 18, 2005
    Winn and Savannah,

    Thanks very much for your help and suggestions - please excuse me for taking a while to get back to you - I am overseas again, working, and don't have very much access to the web.

    The transparent thing won't work for me because I have a patterned background.

    And Winn, I tried your code but I must have been doing something quite wrong because all it did was change the color of my links and picture borders (to a bright royal blue and olive green?!), my headings and shopping cart stayed just the same. I tried a few variations of the code but always the same effect.

    Anyway, I can't proceed until I get home again in mid June. Would it be OK if I contacted you (Winn) by PM then to ask a few more questions?

    Thanks again for your generous help
    I'm sorry the code didn't work for you. If you are on a mac, that could be the problem. I don't have one to test functionality on.

    I am going on a photo expedition for the month of June, but will check my email/pm every once in a while. I would be more than happy to help out.

    Take Care,
    Winn
Sign In or Register to comment.