View Full Version : Changing selected title words throughout my site
Lorenzo
Apr-14-2006, 04:12 AM
Hi,
Along with photos, I post digital art images on my smugmug site. As such, is there some way that I can change the word "photos" in "most popular photos" to the word "images' on my home page and change "buy: this photo multiple photos" to "buy: this image multiple images"?
Thanks,
Lorenzo
Andy
Apr-14-2006, 04:37 AM
Hi,
Along with photos, I post digital art images on my smugmug site. As such, is there some way that I can change the word "photos" in "most popular photos" to the word "images' on my home page and change "buy: this photo multiple photos" to "buy: this image multiple images"?
Thanks,
Lorenzo
:wave Hi Lorenzo, welcome to Dgrin!
http://blogs.smugmug.com/web-tricks/2005/09/06/changing-shopping-cart-action-text/
This will do it for your shopping cart text :thumb
Not sure about changing the word photos in the "most popular" part - probably one of the javascripters can help with that. Standby.
Lorenzo
Apr-14-2006, 05:12 AM
:wave Hi Lorenzo, welcome to Dgrin!
http://blogs.smugmug.com/web-tricks/2005/09/06/changing-shopping-cart-action-text/
This will do it for your shopping cart text :thumb
Not sure about changing the word photos in the "most popular" part - probably one of the javascripters can help with that. Standby.
Andy, Thanks + sorry about placing my help request in the wrong forum. In which customization text block area do I place the customized code? Saludos de Miami, Lorenzo
Andy
Apr-14-2006, 05:48 AM
Andy, Thanks + sorry about placing my help request in the wrong forum. In which customization text block area do I place the customized code? Saludos de Miami, Lorenzo
Hi Lorenzo,
The custom cart code goes in the Javascript box.
Thanks!
Andy
Lorenzo
Apr-14-2006, 09:18 AM
Hi Lorenzo,
The custom cart code goes in the Javascript box.
Thanks!
Andy
Andy, I feel like I'm in that old Bugs Bunny cartoon where Bugs bothers the genie-in-the-bottle with one too many wishes...
I added the code to the Javascript box, saved the changes, but nothing changed; all is still the same :cry.
See:
http://tropicalearth.smugmug.com/photos/64417294-L.jpg
ivar
Apr-16-2006, 04:16 AM
Andy, I feel like I'm in that old Bugs Bunny cartoon where Bugs bothers the genie-in-the-bottle with one too many wishes...
I added the code to the Javascript box, saved the changes, but nothing changed; all is still the same :cry.
See:
Hi Lorenzo,
Do you have a link to the galleries it is supposed to be working for so i can take a look at it? Also, make sure that you have not set "hide owner" to yes, or "appearance: smugmug" instead of custom.
Lorenzo
Apr-16-2006, 10:11 AM
Hi Lorenzo,
Do you have a link to the galleries it is supposed to be working for so i can take a look at it? Also, make sure that you have not set "hide owner" to yes, or "appearance: smugmug" instead of custom.
Ivar,
Thanks. I set appearance to smugmug and I do not set "hide owner" for any gallery. The URL is: http://tropicalearth.smugmug.com/gallery/1306042
Saludos,
Lorenzo
ivar
Apr-16-2006, 11:55 AM
Ivar,
Thanks. I set appearance to smugmug and I do not set "hide owner" for any gallery. The URL is: http://tropicalearth.smugmug.com/gallery/1306042
Saludos,
LorenzoHi Lorenzo, i may not have been clear enough in my previous post, appearance should not be set to smugmug, but it has to be set to custom.
Lorenzo
Apr-16-2006, 02:15 PM
Hi Lorenzo, i may not have been clear enough in my previous post, appearance should not be set to smugmug, but it has to be set to custom.
Ivar,
Sorry, I indeed misunderstood you. I just changed the setting to custom. I await your instuctions.
Lorenzo
ivar
Apr-17-2006, 02:21 AM
Ivar,
Sorry, I indeed misunderstood you. I just changed the setting to custom. I await your instuctions.
LorenzoHi again Lorenzo.
In your javascript you have this:onload = redoCart;
function redoCart() {
bodyClass = document.getElementsByTagName("body")[0].className;
if (bodyClass.indexOf("smugmug") != -1 || bodyClass.indexOf("journal") != -1 || bodyClass.indexOf("default") != -1 || bodyClass.indexOf("singleImage") != -1) {
topCart = document.getElementById("albumNav_top").innerHTML;
topCart = topCart.replace('this photo','this image');
topCart = topCart.replace('multiple photos','this image and others');
document.getElementById("albumNav_top").innerHTML = topCart;
}
} replace the red line by this:addEvent(window, "load", redoCart);
Lorenzo
Apr-17-2006, 05:00 AM
Hi again Lorenzo.
In your javascript you have this:onload = redoCart;
function redoCart() {
bodyClass = document.getElementsByTagName("body")[0].className;
if (bodyClass.indexOf("smugmug") != -1 || bodyClass.indexOf("journal") != -1 || bodyClass.indexOf("default") != -1 || bodyClass.indexOf("singleImage") != -1) {
topCart = document.getElementById("albumNav_top").innerHTML;
topCart = topCart.replace('this photo','this image');
topCart = topCart.replace('multiple photos','this image and others');
document.getElementById("albumNav_top").innerHTML = topCart;
}
} replace the red line by this:addEvent(window, "load", redoCart);
Ivar,
Thanks; that worked! :clap
Is there a posting that details how to make other wording changes such as changing the word home in the opening page to homepage? I looked but couldn't find one.
¡Muchisimas gracias!
Lorenzo
Lorenzo
Apr-20-2006, 05:26 AM
I'd like to thank Andy and Ivar for their help in changing the word photos to images on my shopping cart page. Can someone help me with the code needed to change most popular photos to most popular images on my homepage? Thanks, Lorenzo
ivar
Apr-20-2006, 06:27 AM
I'd like to thank Andy and Ivar for their help in changing the word photos to images on my shopping cart page. Can someone help me with the code needed to change most popular photos to most popular images on my homepage? Thanks, LorenzoHi Lorenzo :wave
Add the green stuff:function redoCart() {
bodyClass = document.getElementsByTagName("body")[0].className;
if (bodyClass.indexOf("smugmug") != -1 || bodyClass.indexOf("journal") != -1 || bodyClass.indexOf("default") != -1 || bodyClass.indexOf("singleImage") != -1) {
topCart = document.getElementById("albumNav_top").innerHTML;
topCart = topCart.replace('this photo','this image');
topCart = topCart.replace('multiple photos','this image and others');
document.getElementById("albumNav_top").innerHTML = topCart;
}
if (bodyClass.indexOf("homepage") != -1 ) {
topCart = document.getElementById("popularPhotos").innerHTML;
topCart = topCart.replace('photos','images');
document.getElementById("popularPhotos").innerHTML = topCart;
}
}
Lorenzo
Apr-20-2006, 06:50 AM
Ivar,
Thanks!
Let me know if you're in Miami, again, and I'll take you to a good Cuban restuarant. :binge
Saludos,
Lorenzo
ivar
Apr-20-2006, 07:27 AM
Know what you say, i should be in South-Florida before the end of October and i am a fan of cuban food :eat
Mike Lane
Apr-20-2006, 09:35 AM
Methinks someone is going to get to to go Versailles (http://www.versaillescuban.com/). MMMMM....
Lorenzo
Apr-20-2006, 10:22 AM
Methinks someone is going to get to to go Versailles (http://www.versaillescuban.com/). MMMMM....
¡Si, por su puesto!
http://www.latinamericanstudies.org/exile/versailles.jpg
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.