PDA

View Full Version : Adding a URL to the footer


JoshFink
Jul-08-2007, 07:08 PM
Is it possible to add another link in the footer? I know it has something to do with footer.nav but I'm not sure how I would format it. Not that I want to but for instance if I wanted to add a link to http://www.google.com

Thanks

Allen
Jul-08-2007, 07:29 PM
Is it possible to add another link in the footer? I know it has something to do with footer.nav but I'm not sure how I would format it. Not that I want to but for instance if I wanted to add a link to http://www.google.com

Thanks
Add this to your footer customize box.

<div align="center"><a href="http://www.google.com">Google</a></div>

JoshFink
Jul-08-2007, 07:39 PM
Add this to your footer customize box.

<div align="center"><a href="http://www.google.com">Google</a></div>

Thanks.. I see how that adds it, is there a way to add it between Shopping Cart and portions 2007 SmugMug, inc?

Josh

oxy8384
Jul-09-2007, 12:37 PM
...I stole this from another post by devbobo and modified it for your purposes...

YE.onContentReady('footer', function() {
var myFoot = document.getElementById('footer');
myFoot.innerHTML = myFoot.innerHTML.replace('<span class="text">portions',
'<span class="???"><a href="???">link text</a>&nbsp;|&nbsp;</span><span class="text">portions');
}); You'll need to replace the ??? and 'link text' with your content. You need to use the onContentReady function to wait until the smugmug footer loads, since this happens after all your footer code is executed...

Of course, Smugmug is very protective of that footer, so they may not let you modify it...

Bill

JoshFink
Jul-09-2007, 12:39 PM
...I stole this from another post by devbobo and modified it for your purposes...

YE.onContentReady('footer', function() {
var myFoot = document.getElementById('footer');
myFoot.innerHTML = myFoot.innerHTML.replace('<span class="text">portions',
'<span class="???"><a href="???">link text</a>&nbsp;|&nbsp;</span><span class="text">portions');
}); You'll need to replace the ??? and 'link text' with your content. You need to use the onContentReady function to wait until the smugmug footer loads, since this happens after all your footer code is executed...

Of course, Smugmug is very protective of that footer, so they may not let you modify it...

Bill

Thank You

davidweaver
Jul-31-2007, 06:42 PM
Doesn't seem to work in IE, works in FF.

Suggestions?