Back or Home Button

MikeyshayeMikeyshaye Registered Users Posts: 4 Beginner grinner
edited October 13, 2008 in SmugMug Support
Does anyone have any code to create a home or back button that I can use on my galleries. I don't think it is really obvious when someone visits your galleries how to get back to the home page. I though a button to help them do just that would be nice.
Any suggestions?

Thanks,
Mike

Comments

  • darryldarryl Registered Users Posts: 997 Major grins
    edited October 13, 2008
    Mikeyshaye wrote:
    Does anyone have any code to create a home or back button that I can use on my galleries. I don't think it is really obvious when someone visits your galleries how to get back to the home page. I though a button to help them do just that would be nice.
    Any suggestions?

    Thanks,
    Mike

    Yeah, isn't it annoying how that SmugMug link in the top-left corner takes you back to SmugMug's home page instead of your own? As does the "Home" link?

    Most folks here will tell you that you can completely replace SmugMug's header with your own, which can contain a link to your home page.

    But I like SmugMug's headers and layouts. I just want that top-left SmugMug logo and the "Home" link to go back to *my* home page instead of SmugMug's. Seems like it should just work that way, right?

    Alas, no. I can't recall if I bothered to file a Feature Request. Here's the workaround if you've got a Power or Pro Account. Add these lines to Header Javascript:
    // Fix Smugmug logo link to go to YOURSITENICKNAME.smugmug.com
    YE.onAvailable('homelink', function(e) {
        this.href = "http://YOURSITENICKNAME.smugmug.com/";
        this.firstChild.alt = "YOUR SITE'S TITLE";
        this.firstChild.title = "YOUR SITE'S TITLE";
    });
    
    // Fix Home link to go to YOURSITENICKNAME.smugmug.com
    YE.onAvailable('toolbar', function() {
      this.innerHTML = this.innerHTML.replace(new RegExp(/www/g), 'YOURSITENICKNAME')
    });
    
  • DoctorItDoctorIt Administrators Posts: 11,952 moderator
    edited October 13, 2008
    Just FYI: I moved this thread to the SmugMug Support forum (it was posted in Dgrin Forum support). Dgrin does not equal SmugMug.
    thumb.gif


    On topic: there is a host of customizations you can do to add a "home" button. See the plethora of threads on adding a navbar, or other code, into your Smugmug site.
    Since 2004...
Sign In or Register to comment.