PDA

View Full Version : Changing 'Gallery Categories..." text


choinga
May-16-2007, 10:49 AM
Hello - first post. :clap

I've managed to figure a bunch of this stuff out already but am getting hung up on one seemingly simple detail...

I want to change the title text in the gallery from "gallery categories" to something more custom.

I found the code to do this on the basic FAQ:

Change "gallery categories":
YE.onAvailable('categoryTitle', function() {this.innerHTML = 'Something New'});

However, entering this into the javascript section does not make the change.

I'm curious if it has something to do with another customization I made. I followed the directions here: http://dgrin.smugmug.com/gallery/2160039 to create both a banner and change my BIO section to a slideshow. In doing so, I used the custom code that created a second homepage. Would this be messing this up?

Here's my site: http://lince.smugmug.com

Specifically, I want to change the gallery categories text on the /galleries page: http://lince.smugmug.com/galleries

Any ideas?

Barb
May-19-2007, 01:03 PM
Hello - first post. :clap

I've managed to figure a bunch of this stuff out already but am getting hung up on one seemingly simple detail...

I want to change the title text in the gallery from "gallery categories" to something more custom.

I found the code to do this on the basic FAQ:

Change "gallery categories":
YE.onAvailable('categoryTitle', function() {this.innerHTML = 'Something New'});

However, entering this into the javascript section does not make the change.

I'm curious if it has something to do with another customization I made. I followed the directions here: http://dgrin.smugmug.com/gallery/2160039 to create both a banner and change my BIO section to a slideshow. In doing so, I used the custom code that created a second homepage. Would this be messing this up?

Here's my site: http://lince.smugmug.com

Specifically, I want to change the gallery categories text on the /galleries page: http://lince.smugmug.com/galleries

Any ideas?
Hi,

First thing you will want to do is remove this line of code from your CSS in your customization:

/* removes the words 'gallery categories' from all pages */
#categoriesBox .boxTop { display: none; }


That removes the title altogether.

Then, add the following to your javscript code box in your customization:

YE.onAvailable('categoryTitle', function() {this.innerHTML = 'Something New'});